Class: SugarCubeAnimationDelegate
- Defined in:
- lib/cocoa/sugarcube-animations/caanimation.rb
Instance Attribute Summary collapse
-
#completion ⇒ Object
Returns the value of attribute completion.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
Instance Attribute Details
#completion ⇒ Object
Returns the value of attribute completion.
97 98 99 |
# File 'lib/cocoa/sugarcube-animations/caanimation.rb', line 97 def completion @completion end |
#start ⇒ Object
Returns the value of attribute start.
96 97 98 |
# File 'lib/cocoa/sugarcube-animations/caanimation.rb', line 96 def start @start end |
Instance Method Details
#animationDidStart ⇒ Object
99 100 101 |
# File 'lib/cocoa/sugarcube-animations/caanimation.rb', line 99 def animationDidStart @start && @start.call end |
#animationDidStop(anim, finished: finished) ⇒ Object
103 104 105 |
# File 'lib/cocoa/sugarcube-animations/caanimation.rb', line 103 def animationDidStop(anim, finished: finished) @completion && @completion.call(finished) end |