Class: Rake::Funnel::Support::ArgumentMapper::Switch

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/funnel/support/argument_mapper/switch.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch, values) ⇒ Switch

Returns a new instance of Switch.



8
9
10
11
# File 'lib/rake/funnel/support/argument_mapper/switch.rb', line 8

def initialize(switch, values)
  @values = values
  @switch = switch
end

Instance Attribute Details

#switchObject (readonly)

Returns the value of attribute switch.



6
7
8
# File 'lib/rake/funnel/support/argument_mapper/switch.rb', line 6

def switch
  @switch
end

#valuesObject (readonly)

Returns the value of attribute values.



6
7
8
# File 'lib/rake/funnel/support/argument_mapper/switch.rb', line 6

def values
  @values
end