Class: Compass::Exec::CommandOptionParser

Inherits:
Object
  • Object
show all
Defined in:
lib/compass/exec/command_option_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.options = {}
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



3
4
5
# File 'lib/compass/exec/command_option_parser.rb', line 3

def arguments
  @arguments
end

#optionsObject

Returns the value of attribute options.



3
4
5
# File 'lib/compass/exec/command_option_parser.rb', line 3

def options
  @options
end

#optsObject

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 set_options(opts)

end

#to_sObject



19
20
21
# File 'lib/compass/exec/command_option_parser.rb', line 19

def to_s
  opts.to_s
end