Sha256: 7f846fd86121c215126ce5b886c4f6fcdf5d40005b118a3c1021381732f4e90a

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

class SKNode

  def <<(node)
    addChild(node)
  end

  def run_action(action, &completion)
    runAction(action, completion: completion)
  end

  def [](key)
    userData[key]
  end

  def []=(key, value)
    userData[key] = value
  end

  def to_s
    "#<#{self.class}:0x#{self.object_id.to_s(16)} position=#{position.inspect} name=#{name.inspect}>"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sugarcube-2.10.0 lib/cocoa/sugarcube-spritekit/sknode.rb
sugarcube-2.9.1 lib/cocoa/sugarcube-spritekit/sknode.rb