Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Text::Format doesn't work, see EOF.
- require 'rubygems'
- require 'text/format'
- Formatter = Text::Format.new
- Test = "\
- 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF
- abcdefghi
- jklmno
- pqr
- stuv
- wx
- yz!
- END OF LINE LAWL"
- p Formatter.format(Test) #=> "\
- # 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF 0123456789ABCDEF
- # 0123456789ABCDEF 0123456789ABCDEF abcdefghi jklmno pqr stuv wx yz! END
- # OF LINE LAWL
- # "
Add Comment
Please, Sign In to add comment