Class: Tuple
Instance Attribute Summary collapse
-
#first ⇒ Object
Returns the value of attribute first.
-
#last ⇒ Object
Returns the value of attribute last.
Instance Method Summary collapse
-
#initialize(first = nil, last = nil) ⇒ Tuple
constructor
A new instance of Tuple.
Constructor Details
#initialize(first = nil, last = nil) ⇒ Tuple
Returns a new instance of Tuple.
4 5 6 |
# File 'lib/ruby_ext/tuple.rb', line 4 def initialize first = nil, last = nil @first, @last = first, last end |