Class: Rake::Funnel::Support::ArgumentMapper::KeyValuePair
- Inherits:
-
Object
- Object
- Rake::Funnel::Support::ArgumentMapper::KeyValuePair
- Defined in:
- lib/rake/funnel/support/argument_mapper/key_value_pair.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ KeyValuePair
constructor
A new instance of KeyValuePair.
Constructor Details
#initialize(key, value) ⇒ KeyValuePair
Returns a new instance of KeyValuePair.
8 9 10 11 |
# File 'lib/rake/funnel/support/argument_mapper/key_value_pair.rb', line 8 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/rake/funnel/support/argument_mapper/key_value_pair.rb', line 6 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/rake/funnel/support/argument_mapper/key_value_pair.rb', line 6 def value @value end |