Class: Pair

Inherits:
Object
  • Object
show all
Defined in:
lib/libruby/pair.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, label) ⇒ Pair

Returns a new instance of Pair.



2
3
4
5
# File 'lib/libruby/pair.rb', line 2

def initialize(value, label)
  @value = value
  @label = label
end

Instance Attribute Details

#labelObject

Returns the value of attribute label.



6
7
8
# File 'lib/libruby/pair.rb', line 6

def label
  @label
end

#valueObject

Returns the value of attribute value.



6
7
8
# File 'lib/libruby/pair.rb', line 6

def value
  @value
end