Class: Rinda::Tuple Private

Inherits:
Object
  • Object
show all
Defined in:
lib/pione/patch/rinda-patch.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object Also known as: eql?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



19
20
21
22
# File 'lib/pione/patch/rinda-patch.rb', line 19

def ==(other)
  return false unless other.kind_of?(Tuple)
  value == other.value
end

#init_with_ary(ary) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



25
26
27
28
29
30
31
32
# File 'lib/pione/patch/rinda-patch.rb', line 25

def init_with_ary(ary)
  @tuple = Array.new(ary.size)
  # add timestamp
  @tuple.timestamp = ary.timestamp
  @tuple.size.times do |i|
    @tuple[i] = ary[i]
  end
end