Class: Wordfor::Plaintext

Inherits:
Object
  • Object
show all
Defined in:
lib/wordfor/plaintext.rb

Class Method Summary collapse

Class Method Details



4
5
6
# File 'lib/wordfor/plaintext.rb', line 4

def print message=nil
  puts message
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
  options = {
    :line_width => columns
  }.merge args.extract_options!

  line = args.shift

  word_wrap(line, options)
end