Class: StillActive::Options
- Inherits:
-
Object
- Object
- StillActive::Options
- Defined in:
- lib/still_active/options.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#options_parser ⇒ Object
Returns the value of attribute options_parser.
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
- #parse!(args) ⇒ Object
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/still_active/options.rb', line 9 def initialize @options = {} @options_parser = OptionParser.new do |opts| (opts) (opts) add_gemfile_option(opts) add_gems_option(opts) (opts) (opts) (opts) (opts) (opts) end end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/still_active/options.rb', line 7 def @options end |
#options_parser ⇒ Object
Returns the value of attribute options_parser.
7 8 9 |
# File 'lib/still_active/options.rb', line 7 def @options_parser end |
Instance Method Details
#parse!(args) ⇒ Object
24 25 26 27 28 |
# File 'lib/still_active/options.rb', line 24 def parse!(args) .parse!(args) end |