Class: Rake::Funnel::Support::ArgumentMapper::KeyValuePair

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#keyObject (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

#valueObject (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