Class: Zimt::PBXHash

Inherits:
Object
  • Object
show all
Defined in:
lib/zimt/pbxproj.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pbxproj, pbxid, node) ⇒ PBXHash

Returns a new instance of PBXHash.



300
301
302
303
304
# File 'lib/zimt/pbxproj.rb', line 300

def initialize(pbxproj, pbxid, node)
  @pbxproj = pbxproj
  @pbxid = pbxid
  @node = node
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym) ⇒ Object (private)



330
331
332
# File 'lib/zimt/pbxproj.rb', line 330

def method_missing(sym)
  wrap(@node[sym.to_s])
end

Instance Attribute Details

#pbxidObject (readonly)

Returns the value of attribute pbxid.



298
299
300
# File 'lib/zimt/pbxproj.rb', line 298

def pbxid
  @pbxid
end

Instance Method Details

#inspectObject



310
311
312
# File 'lib/zimt/pbxproj.rb', line 310

def inspect
  "<PBX: #{keys.join(', ')}>"
end

#keysObject



306
307
308
# File 'lib/zimt/pbxproj.rb', line 306

def keys
  @node.keys
end