Class: Wordfor::Plaintext
- Inherits:
-
Object
- Object
- Wordfor::Plaintext
- Defined in:
- lib/wordfor/plaintext.rb
Class Method Summary collapse
- .print(message = nil) ⇒ Object
-
.wrapped_text(*args) ⇒ Object
turn line into lines of text of columns length.
Class Method Details
.print(message = nil) ⇒ Object
4 5 6 |
# File 'lib/wordfor/plaintext.rb', line 4 def print =nil puts end |
.wrapped_text(*args) ⇒ Object
turn line into lines of text of columns length
9 10 11 12 13 14 15 16 17 |
# File 'lib/wordfor/plaintext.rb', line 9 def wrapped_text *args = { :line_width => columns }.merge args. line = args.shift word_wrap(line, ) end |