Class: D4C::ConsoleOptionSet
- Inherits:
-
Object
- Object
- D4C::ConsoleOptionSet
- Defined in:
- lib/d4c/console_option_set.rb
Defined Under Namespace
Classes: Option
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #add_option(name, desc = 'No description', &blk) ⇒ Object
-
#initialize ⇒ ConsoleOptionSet
constructor
A new instance of ConsoleOptionSet.
Constructor Details
#initialize ⇒ ConsoleOptionSet
Returns a new instance of ConsoleOptionSet.
9 10 11 |
# File 'lib/d4c/console_option_set.rb', line 9 def initialize = [] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/d4c/console_option_set.rb', line 5 def end |
Instance Method Details
#add_option(name, desc = 'No description', &blk) ⇒ Object
13 14 15 |
# File 'lib/d4c/console_option_set.rb', line 13 def add_option(name, desc = 'No description', &blk) << Option.new(name, desc, blk) end |