Class: Compass::Exec::CommandOptionParser
- Inherits:
-
Object
- Object
- Compass::Exec::CommandOptionParser
- Defined in:
- lib/compass/exec/command_option_parser.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#options ⇒ Object
Returns the value of attribute options.
-
#opts ⇒ Object
Returns the value of attribute opts.
Instance Method Summary collapse
-
#initialize(arguments) ⇒ CommandOptionParser
constructor
A new instance of CommandOptionParser.
- #parse! ⇒ Object
- #set_options(opts) ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(arguments) ⇒ CommandOptionParser
Returns a new instance of CommandOptionParser.
4 5 6 7 |
# File 'lib/compass/exec/command_option_parser.rb', line 4 def initialize(arguments) self.arguments = arguments self. = {} end |
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments.
3 4 5 |
# File 'lib/compass/exec/command_option_parser.rb', line 3 def arguments @arguments end |
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/compass/exec/command_option_parser.rb', line 3 def @options end |
#opts ⇒ Object
Returns the value of attribute opts.
3 4 5 |
# File 'lib/compass/exec/command_option_parser.rb', line 3 def opts @opts end |
Instance Method Details
#parse! ⇒ Object
8 9 10 |
# File 'lib/compass/exec/command_option_parser.rb', line 8 def parse! opts.parse!(arguments) end |
#set_options(opts) ⇒ Object
16 17 18 |
# File 'lib/compass/exec/command_option_parser.rb', line 16 def (opts) end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/compass/exec/command_option_parser.rb', line 19 def to_s opts.to_s end |