Created
September 8, 2012 00:38
-
-
Save havenwood/3670948 to your computer and use it in GitHub Desktop.
WordWrap from ActionPack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`gem install actionpack` | |
Gem.refresh | |
require 'action_view' | |
include ActionView::Helpers::TextHelper | |
puts word_wrap 'My life closed twice before its close; It yet remains to see If Immortality unveil A third event to me, So huge, so hopeless to conceive, As these that twice befell. Parting is all we know of heaven, And all we need of hell.', :line_width => 40 | |
#My life closed twice before its close; | |
#It yet remains to see If Immortality | |
#unveil A third event to me, So huge, so | |
#hopeless to conceive, As these that | |
#twice befell. Parting is all we know of | |
#heaven, And all we need of hell. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment