instance method
expand
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
expand(to_expand = nil)
Replaces all tab characters in the text with #tabstop spaces.
Parameters
-
to_expandopt = nil
Source
# File actionmailer/lib/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
Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 914
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Text::Format