Class: SpriteKit::Node
- Inherits:
-
Object
- Object
- SpriteKit::Node
- Defined in:
- mygame/lib/sprite_kit/spritesheet_loader.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(parent:, value:, children: []) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(parent:, value:, children: []) ⇒ Node
Returns a new instance of Node.
74 75 76 77 78 |
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 74 def initialize(parent:, value:, children: []) @parent = parent @value = value @children = children end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
71 72 73 |
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 71 def children @children end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
72 73 74 |
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 72 def parent @parent end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
72 73 74 |
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 72 def value @value end |