Class: AnnotateGem::Options
- Inherits:
-
Object
- Object
- AnnotateGem::Options
- Defined in:
- lib/annotate_gem/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.
8 9 10 11 12 13 14 15 16 |
# File 'lib/annotate_gem/options.rb', line 8 def initialize @options = {} @options_parser = OptionParser.new do |opts| (opts) (opts) (opts) (opts) end end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/annotate_gem/options.rb', line 6 def @options end |
#options_parser ⇒ Object
Returns the value of attribute options_parser.
6 7 8 |
# File 'lib/annotate_gem/options.rb', line 6 def @options_parser end |
Instance Method Details
#parse!(args) ⇒ Object
18 19 20 21 22 |
# File 'lib/annotate_gem/options.rb', line 18 def parse!(args) .parse!(args) end |