Class: Xcodeproj::Project::Object::PBXReferenceProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/kintsugi/xcodeproj_extensions.rb

Overview

Modifies ‘PBXReferenceProxy` to include more data in `displayName` to make it unique.

Constant Summary collapse

@@old_display_name =
instance_method(:display_name)

Instance Method Summary collapse

Instance Method Details

#display_nameObject



54
55
56
57
58
59
60
# File 'lib/kintsugi/xcodeproj_extensions.rb', line 54

def display_name
  if self.remote_ref.nil?
    @@old_display_name.bind(self).call
  else
    @@old_display_name.bind(self).call + " - " + self.remote_ref.display_name
  end
end