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.



265
266
267
268
269
# File 'lib/zimt/pbxproj.rb', line 265

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)



295
296
297
# File 'lib/zimt/pbxproj.rb', line 295

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

Instance Attribute Details

#pbxidObject (readonly)

Returns the value of attribute pbxid.



263
264
265
# File 'lib/zimt/pbxproj.rb', line 263

def pbxid
  @pbxid
end

Instance Method Details

#inspectObject



275
276
277
# File 'lib/zimt/pbxproj.rb', line 275

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

#keysObject



271
272
273
# File 'lib/zimt/pbxproj.rb', line 271

def keys
  @node.keys
end