Class: SpriteKit::Node

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(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

#childrenObject

Returns the value of attribute children.



71
72
73
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 71

def children
  @children
end

#parentObject (readonly)

Returns the value of attribute parent.



72
73
74
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 72

def parent
  @parent
end

#valueObject (readonly)

Returns the value of attribute value.



72
73
74
# File 'mygame/lib/sprite_kit/spritesheet_loader.rb', line 72

def value
  @value
end