Class: Yoptparse::Command
- Inherits:
-
Object
- Object
- Yoptparse::Command
- Defined in:
- lib/yoptparse/command.rb
Class Method Summary collapse
Class Method Details
.banner ⇒ String
5 6 7 |
# File 'lib/yoptparse/command.rb', line 5 def ::YARD::Registry.at("#{self}#initialize").docstring end |
.parse(argv) ⇒ Hash{Symbol => Object}
11 12 13 14 15 |
# File 'lib/yoptparse/command.rb', line 11 def parse(argv) option_parser, result_store = generate_option_parser_and_result_store option_parser.parse(argv) result_store end |
.to_option_parser ⇒ OptionParser
18 19 20 |
# File 'lib/yoptparse/command.rb', line 18 def to_option_parser generate_option_parser_and_result_store.first end |