Module: CSD::Extensions::Core::OptionParser
- Included in:
- OptionParser
- Defined in:
- lib/csd/extensions/core/option_parser.rb
Instance Method Summary collapse
- #headline(text) ⇒ Object
- #list_item(item = '', description = '', &block) ⇒ Object
- #newline ⇒ Object
- #subheadline(text) ⇒ Object
Instance Method Details
#headline(text) ⇒ Object
13 14 15 16 |
# File 'lib/csd/extensions/core/option_parser.rb', line 13 def headline(text) newline separator(text) end |
#list_item(item = '', description = '', &block) ⇒ Object
22 23 24 |
# File 'lib/csd/extensions/core/option_parser.rb', line 22 def list_item(item='', description='', &block) separator(summary_indent + item.ljust(summary_width + 1) + description) end |
#newline ⇒ Object
9 10 11 |
# File 'lib/csd/extensions/core/option_parser.rb', line 9 def newline separator '' end |
#subheadline(text) ⇒ Object
18 19 20 |
# File 'lib/csd/extensions/core/option_parser.rb', line 18 def subheadline(text) separator(@summary_indent + text) end |