Class: EacCli::Runner::BaseOption
- Inherits:
-
Object
- Object
- EacCli::Runner::BaseOption
- Defined in:
- lib/eac_cli/runner/base_option.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#long ⇒ Object
readonly
Returns the value of attribute long.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#short ⇒ Object
readonly
Returns the value of attribute short.
Instance Method Summary collapse
-
#initialize(short, long, description, options = {}) ⇒ BaseOption
constructor
A new instance of BaseOption.
- #show_on_usage? ⇒ Boolean
Constructor Details
#initialize(short, long, description, options = {}) ⇒ BaseOption
Returns a new instance of BaseOption.
10 11 12 13 14 15 |
# File 'lib/eac_cli/runner/base_option.rb', line 10 def initialize(short, long, description, = {}) @short = short @long = long @description = description @options = .with_indifferent_access end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'lib/eac_cli/runner/base_option.rb', line 8 def description @description end |
#long ⇒ Object (readonly)
Returns the value of attribute long.
8 9 10 |
# File 'lib/eac_cli/runner/base_option.rb', line 8 def long @long end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/eac_cli/runner/base_option.rb', line 8 def @options end |
#short ⇒ Object (readonly)
Returns the value of attribute short.
8 9 10 |
# File 'lib/eac_cli/runner/base_option.rb', line 8 def short @short end |
Instance Method Details
#show_on_usage? ⇒ Boolean
17 18 19 |
# File 'lib/eac_cli/runner/base_option.rb', line 17 def show_on_usage? [:usage] end |