Class: SugarCubeAnimationDelegate

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoa/sugarcube-animations/caanimation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#completionObject

Returns the value of attribute completion.



97
98
99
# File 'lib/cocoa/sugarcube-animations/caanimation.rb', line 97

def completion
  @completion
end

#startObject

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

#animationDidStartObject



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