Class: SpriteKit::Tree
- Inherits:
-
Object
- Object
- SpriteKit::Tree
- Defined in:
- mygame/lib/sprite_kit/spritesheet_loader.rb
Instance Attribute Summary collapse
-
#root_node ⇒ Object
Returns the value of attribute root_node.
Instance Method Summary collapse
-
#initialize(root_node:) ⇒ Tree
constructor
A new instance of Tree.
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_node ⇒ Object
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 |