Class: Rake::Funnel::Support::ArgumentMapper::Switch
- Inherits:
-
Object
- Object
- Rake::Funnel::Support::ArgumentMapper::Switch
- Defined in:
- lib/rake/funnel/support/argument_mapper/switch.rb
Instance Attribute Summary collapse
-
#switch ⇒ Object
readonly
Returns the value of attribute switch.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(switch, values) ⇒ Switch
constructor
A new instance of Switch.
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
#switch ⇒ Object (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 |
#values ⇒ Object (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 |