Class: Metro::AnimationFactory

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(actor, options = {}, &block) ⇒ AnimationFactory

Returns a new instance of AnimationFactory.



7
8
9
10
11
# File 'lib/metro/animation/animation_factory.rb', line 7

def initialize(actor,options = {},&block)
  @actor = actor
  @options = options
  @on_complete_block = block
end

Instance Attribute Details

#actorObject (readonly)

Returns the value of attribute actor.



5
6
7
# File 'lib/metro/animation/animation_factory.rb', line 5

def actor
  @actor
end

#on_complete_blockObject (readonly)

Returns the value of attribute on_complete_block.



5
6
7
# File 'lib/metro/animation/animation_factory.rb', line 5

def on_complete_block
  @on_complete_block
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/metro/animation/animation_factory.rb', line 5

def options
  @options
end