Class: SpriteKit::Tree

Inherits:
Object
  • Object
show all
Defined in:
mygame/lib/sprite_kit/spritesheet_loader.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_node:) ⇒ Tree

Returns a new instance of Tree.



65
66
67
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 65

def initialize(root_node:)
  @root_node = root_node
end

Instance Attribute Details

#root_nodeObject

Returns the value of attribute root_node.



63
64
65
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 63

def root_node
  @root_node
end