Method: Trollop::Parser#wrap

Defined in:
lib/sfp/trollop.rb

#wrap(str, opts = {}) ⇒ Object

:nodoc:



505
506
507
508
509
510
511
# File 'lib/sfp/trollop.rb', line 505

def wrap str, opts={} # :nodoc:
  if str == ""
    [""]
  else
    str.split("\n").map { |s| wrap_line s, opts }.flatten
  end
end