instance method
hyphenate_to
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
hyphenate_to(word, size)
The default implementation of #hyphenate_to implements SPLIT_CONTINUATION.
Parameters
-
wordreq -
sizereq
Source
# File actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb, line 583
def hyphenate_to(word, size)
[word[0 .. (size - 2)] + "\\", word[(size - 1) .. -1]]
end
Defined in actionmailer/lib/action_mailer/vendor/text-format-0.6.3/text/format.rb line 583
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Text::Format