Class: Thicket::OptionParser
- Inherits:
-
Object
- Object
- Thicket::OptionParser
- Defined in:
- lib/thicket/option_parser.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ OptionParser
constructor
A new instance of OptionParser.
Constructor Details
#initialize ⇒ OptionParser
Returns a new instance of OptionParser.
11 12 13 14 |
# File 'lib/thicket/option_parser.rb', line 11 def initialize @options = {} parse ARGV end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/thicket/option_parser.rb', line 9 def @options end |