instance method
center
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
center(to_center = nil)
Centers the text, preserving empty lines and tabs.
Parameters
-
to_centeropt = nil
Source
# File actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb, line 908
def center(to_center = nil)
to_center = @text if to_center.nil?
__center([to_center].flatten)
end
Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 908
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Text::Format