Method: Xcodeproj::Project::Object::AbstractObject#pretty_print

Defined in:
lib/xcodeproj/project/object.rb

#pretty_printHash{String => Hash}

Returns A hash suitable to display the object to the user.

Returns:

  • (Hash{String => Hash})

    A hash suitable to display the object to the user.



468
469
470
471
472
473
474
475
# File 'lib/xcodeproj/project/object.rb', line 468

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