class Lutaml::Model::ComparableModel::DiffContext

def format_object_content(obj)

Returns:
  • (String) - Formatted content of the object

Parameters:
  • obj (Object) -- The object to format
def format_object_content(obj)
  return format_value(obj) unless obj.is_a?(ComparableModel)
  obj.class.attributes.map do |attr, _|
    "#{attr}: #{format_value(obj.send(attr))}"
  end.join("\n")
end