def equal_leafs?(other)
      self.class.leafs.all? { |leaf| send(leaf) == other.send(leaf) }
    end
def equal_leafs?(other)
      self.class.leafs.all? { |leaf| send(leaf) == other.send(leaf) }
    end
Returns true if all leaf values of the current object and the other object are equal.