Class: OptionParser
- Inherits:
-
Object
- Object
- OptionParser
- Includes:
- Subcommand
- Defined in:
- lib/cl/magic/common/sub_command.rb
Defined Under Namespace
Modules: Subcommand
Instance Method Summary collapse
- #parse!(*args) ⇒ Object
- #summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) ⇒ Object
Methods included from Subcommand
Instance Method Details
#parse!(*args) ⇒ Object
43 44 45 46 |
# File 'lib/cl/magic/common/sub_command.rb', line 43 def parse!(*args) parse_with_subcommand!(*args) self end |
#summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) ⇒ Object
48 49 50 |
# File 'lib/cl/magic/common/sub_command.rb', line 48 def summarize(to = [], width = @summary_width, max = width - 1, indent = @summary_indent, &blk) summarize_with_subcommand(to, width, max, indent, &blk) end |