# File lib/structures.rb, line 29 def ==(other) other.equal?(self) || (other.instance_of?(self.class) && self.class::ELEMENTS.all?{ |el| self.send(el) == other.send(el)} ) end