Class: Teien::Animation::Operator

Inherits:
Object
  • Object
show all
Defined in:
lib/teien/animation/animation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, speed, loop) ⇒ Operator

Returns a new instance of Operator.



13
14
15
16
17
# File 'lib/teien/animation/animation.rb', line 13

def initialize(name, speed, loop)
  @name = name
  @speed = speed
  @loop = loop
end

Instance Attribute Details

#loopObject

Returns the value of attribute loop.



11
12
13
# File 'lib/teien/animation/animation.rb', line 11

def loop
  @loop
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/teien/animation/animation.rb', line 9

def name
  @name
end

#speedObject

Returns the value of attribute speed.



10
11
12
# File 'lib/teien/animation/animation.rb', line 10

def speed
  @speed
end