module Lutaml::Model::ComparableModel

def eql?(other)

Returns:
  • (Boolean) - True if objects are equal, false otherwise

Parameters:
  • other (Object) -- The object to compare with
def eql?(other)
  other.class == self.class &&
    self.class.attributes.all? do |attr, _|
      send(attr) == other.send(attr)
    end
end