Class: XcodeIDE::ObjectNode

Inherits:
Object
  • Object
show all
Defined in:
lib/xcodeide/obj_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(io) ⇒ ObjectNode

Returns a new instance of ObjectNode.



8
9
10
11
# File 'lib/xcodeide/obj_node.rb', line 8

def initialize(io)
  @hash = {}
  parse(io)
end

Instance Method Details

#[](arg) ⇒ Object



13
14
15
# File 'lib/xcodeide/obj_node.rb', line 13

def [](arg)
  @hash[arg]
end

#eachObject



17
18
19
# File 'lib/xcodeide/obj_node.rb', line 17

def each
  @hash.each { |k, v| yield k, v }
end

#is_aObject



21
22
23
# File 'lib/xcodeide/obj_node.rb', line 21

def is_a
  @hash['isa']
end