Class: Metro::AnimationFactory
- Inherits:
-
Object
- Object
- Metro::AnimationFactory
- Defined in:
- lib/metro/animation/animation_factory.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#on_complete_block ⇒ Object
readonly
Returns the value of attribute on_complete_block.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(actor, options = {}, &block) ⇒ AnimationFactory
constructor
A new instance of AnimationFactory.
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, = {},&block) @actor = actor @options = @on_complete_block = block end |
Instance Attribute Details
#actor ⇒ Object (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_block ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/metro/animation/animation_factory.rb', line 5 def @options end |