public Method

Format.expand(to_expand = nil)

Replaces all tab characters in the text with #tabstop spaces.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 914
def expand(to_expand = nil)
  to_expand = @text if to_expand.nil?
  if to_expand.class == Array
    to_expand.collect { |te| __expand(te) }
  else
    __expand(to_expand)
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.