Module: ShellOpts::Grammar::WrappedNode
Instance Method Summary collapse
Instance Method Details
#lines(width, initial = 0) ⇒ Object
346 |
# File 'lib/shellopts/grammar.rb', line 346 def lines(width, initial = 0) @lines ||= words.wrap(width, initial) end |
#puts_descr ⇒ Object
175 176 177 178 |
# File 'lib/shellopts/formatter.rb', line 175 def puts_descr width = [Formatter.rest, Formatter::HELP_MAX_WIDTH].min puts lines(width) end |
#words ⇒ Object
345 |
# File 'lib/shellopts/grammar.rb', line 345 def words() @words ||= text.split(" ") end |