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.
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
#pbxid ⇒ Object (readonly)
Returns the value of attribute pbxid.
263 264 265 |
# File 'lib/zimt/pbxproj.rb', line 263 def pbxid @pbxid end |
Instance Method Details
#inspect ⇒ Object
275 276 277 |
# File 'lib/zimt/pbxproj.rb', line 275 def inspect "<PBX: #{keys.join(', ')}>" end |
#keys ⇒ Object
271 272 273 |
# File 'lib/zimt/pbxproj.rb', line 271 def keys @node.keys end |