Class: Rawbotz::OptionParser
- Inherits:
-
OptionParser
- Object
- OptionParser
- Rawbotz::OptionParser
- Defined in:
- lib/rawbotz/option_parser.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(*args) {|_self, @options| ... } ⇒ OptionParser
constructor
A new instance of OptionParser.
Constructor Details
#initialize(*args) {|_self, @options| ... } ⇒ OptionParser
Returns a new instance of OptionParser.
7 8 9 10 11 12 |
# File 'lib/rawbotz/option_parser.rb', line 7 def initialize(*args) @options = {} super *args yield(self, @options) if block_given? end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/rawbotz/option_parser.rb', line 5 def @options end |