Class: Yap::Cli::Options::Addon
- Inherits:
-
Object
- Object
- Yap::Cli::Options::Addon
- Includes:
- Yap::Cli::OptionsLoader
- Defined in:
- lib/yap/cli/options/addon.rb
Defined Under Namespace
Classes: Disable, Enable, List, Search
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:) ⇒ Addon
constructor
A new instance of Addon.
- #parse(args) ⇒ Object
Methods included from Yap::Cli::OptionsLoader
#load_command, #load_constant_from_path, #load_relative_constant
Constructor Details
#initialize(options:) ⇒ Addon
Returns a new instance of Addon.
8 9 10 |
# File 'lib/yap/cli/options/addon.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.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.rb', line 6 def @options end |
Instance Method Details
#help_message ⇒ Object
20 21 22 |
# File 'lib/yap/cli/options/addon.rb', line 20 def option_parser.to_s end |
#parse(args) ⇒ Object
12 13 14 |
# File 'lib/yap/cli/options/addon.rb', line 12 def parse(args) option_parser.order!(args) end |