Skip to content

Commit

Permalink
[Object] Cache an object's plist name, which is used often.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Oct 27, 2014
1 parent 20b9057 commit 14fb5ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xcodeproj/project/object_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def initialize(type, name, owner)
# attribute.plist_name #=> projectRoot
#
def plist_name
CaseConverter.convert_to_plist(name, :lower)
@plist_name ||= CaseConverter.convert_to_plist(name, :lower)
end

# @return [Array<Class>] the list of the classes accepted by the
Expand Down

0 comments on commit 14fb5ac

Please sign in to comment.