Class: Yap::Cli::Options::Addon::List
- Inherits:
-
Object
- Object
- Yap::Cli::Options::Addon::List
- Includes:
- Yap::Cli::OptionsLoader
- Defined in:
- lib/yap/cli/options/addon/list.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #help_message ⇒ Object
-
#initialize(options:) ⇒ List
constructor
A new instance of List.
- #parse(args) ⇒ Object
Methods included from Yap::Cli::OptionsLoader
#load_command, #load_constant_from_path, #load_relative_constant
Constructor Details
#initialize(options:) ⇒ List
Returns a new instance of List.
8 9 10 |
# File 'lib/yap/cli/options/addon/list.rb', line 8 def initialize(options:) @options = end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/yap/cli/options/addon/list.rb', line 6 def command @command end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/yap/cli/options/addon/list.rb', line 6 def @options end |
Instance Method Details
#help_message ⇒ Object
20 21 22 |
# File 'lib/yap/cli/options/addon/list.rb', line 20 def option_parser.to_s end |
#parse(args) ⇒ Object
12 13 14 |
# File 'lib/yap/cli/options/addon/list.rb', line 12 def parse(args) option_parser.order!(args) end |