Method: Daru::Index#==

Defined in:
lib/daru/index/index.rb

#==(other) ⇒ Object



74
75
76
77
78
79
# File 'lib/daru/index/index.rb', line 74

def ==(other)
  return false if self.class != other.class || other.size != @size

  @relation_hash.keys == other.to_a &&
    @relation_hash.values == other.relation_hash.values
end