Module: ShellOpts::Grammar::WrappedNode
Instance Method Summary collapse
Instance Method Details
#lines(width, initial = 0) ⇒ Object
336 |
# File 'lib/shellopts/grammar.rb', line 336 def lines(width, initial = 0) @lines ||= words.wrap(width, initial) end |
#puts_descr(width = Formatter.rest) ⇒ Object
173 |
# File 'lib/shellopts/formatter.rb', line 173 def puts_descr(width = Formatter.rest) puts lines(width) end |
#words ⇒ Object
335 |
# File 'lib/shellopts/grammar.rb', line 335 def words() @words ||= text.split(" ") end |