class Xcodeproj::Project::Object::AbstractObject

def pretty_print

Returns:
  • (Hash{String => Hash}) - A hash suitable to display the object
def pretty_print
  if to_many_attributes.count == 1
    children = to_many_attributes.first.get_value(self)
    {display_name => children.map(&:pretty_print)}
  else
    display_name
  end
end