Class: Zimt::PBXHash
- Inherits:
-
Object
- Object
- Zimt::PBXHash
- Defined in:
- lib/zimt/pbxproj.rb
Instance Attribute Summary collapse
-
#pbxid ⇒ Object
readonly
Returns the value of attribute pbxid.
Instance Method Summary collapse
-
#initialize(pbxproj, pbxid, node) ⇒ PBXHash
constructor
A new instance of PBXHash.
- #inspect ⇒ Object
- #keys ⇒ Object
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
#pbxid ⇒ Object (readonly)
Returns the value of attribute pbxid.
298 299 300 |
# File 'lib/zimt/pbxproj.rb', line 298 def pbxid @pbxid end |
Instance Method Details
#inspect ⇒ Object
310 311 312 |
# File 'lib/zimt/pbxproj.rb', line 310 def inspect "<PBX: #{keys.join(', ')}>" end |
#keys ⇒ Object
306 307 308 |
# File 'lib/zimt/pbxproj.rb', line 306 def keys @node.keys end |