class Ovaltine::XcodeProject::PBXObject
Attributes
project_file[RW]
uuid[R]
Public Class Methods
create_uuid()
click to toggle source
# File lib/ovaltine/xcode_project/pbxobject.rb, line 14 def self.create_uuid uuid = "" 24.times { uuid += "0123456789ABCDEF"[rand(16),1] } uuid end
filter(array, attrs)
click to toggle source
# File lib/ovaltine/xcode_project/pbxobject.rb, line 8 def self.filter array, attrs array.select do |obj| attrs.select { |k,v| obj[k] == v }.length == attrs.length end end
new(uuid, hash)
click to toggle source
# File lib/ovaltine/xcode_project/pbxobject.rb, line 20 def initialize uuid, hash @project = nil @uuid = uuid self["isa"] = self.class.to_s.split('::').last hash.each { |k,v| self[k] = v } end
Public Instance Methods
inspect()
click to toggle source
Calls superclass method
# File lib/ovaltine/xcode_project/pbxobject.rb, line 27 def inspect @uuid + "=" + super end