public Method

Format.hyphenate_to(word, size)

The default implementation of #hyphenate_to implements SPLIT_CONTINUATION.

Source Code

# File 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
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.