lib/xcodeproject/root_node.rb in xcodeproject-0.1.1 vs lib/xcodeproject/root_node.rb in xcodeproject-0.2.3

- old
+ new

@@ -29,11 +29,11 @@ require 'xcodeproject/exceptions' require 'xcodeproject/extend/string' require 'xcodeproject/extend/array' require 'xcodeproject/extend/hash' -module XCodeProject +module XcodeProject class RootNode def initialize (data, wd) @data, @wd = data, Pathname.new(wd) @objects = data['objects'] @@ -48,10 +48,10 @@ find_objects('PBXBuildFile', {'fileRef' => file_ref_uuid}) end def object (uuid) data = @objects[uuid] - XCodeProject.const_get(data['isa']).new(self, uuid, data) unless data.nil? + XcodeProject.const_get(data['isa']).new(self, uuid, data) unless data.nil? end def object! (uuid) obj = object(uuid) raise ParseError.new("Object with uuid = #{uuid} not found.") if obj.nil?; obj