Class: SKNode
Instance Method Summary collapse
- #<<(node) ⇒ Object
- #[](key) ⇒ Object
- #[]=(key, value) ⇒ Object
- #run_action(action, &completion) ⇒ Object
- #to_s ⇒ Object
Instance Method Details
#<<(node) ⇒ Object
3 4 5 |
# File 'lib/cocoa/sugarcube-spritekit/sknode.rb', line 3 def <<(node) addChild(node) end |
#[](key) ⇒ Object
11 12 13 |
# File 'lib/cocoa/sugarcube-spritekit/sknode.rb', line 11 def [](key) userData[key] end |
#[]=(key, value) ⇒ Object
15 16 17 |
# File 'lib/cocoa/sugarcube-spritekit/sknode.rb', line 15 def []=(key, value) userData[key] = value end |
#run_action(action, &completion) ⇒ Object
7 8 9 |
# File 'lib/cocoa/sugarcube-spritekit/sknode.rb', line 7 def run_action(action, &completion) runAction(action, completion: completion) end |
#to_s ⇒ Object
19 20 21 |
# File 'lib/cocoa/sugarcube-spritekit/sknode.rb', line 19 def to_s "#<#{self.class}:0x#{self.object_id.to_s(16)} position=#{position.inspect} name=#{name.inspect}>" end |