Method: Trollop::Parser#wrap
- Defined in:
- lib/rconf/trollop.rb
#wrap(str, opts = {}) ⇒ Object
:nodoc:
504 505 506 507 508 509 510 |
# File 'lib/rconf/trollop.rb', line 504 def wrap str, opts={} # :nodoc: if str == "" [""] else str.split("\n").map { |s| wrap_line s, opts }.flatten end end |