Method: SugarCube::AnimationChain#loop

Defined in:
lib/ios/sugarcube-animations/animation_chain.rb

#loop(times = true) ⇒ Object

Parameters:

  • times (Fixnum, nil) (defaults to: true)

    number of times to loop, or any other truthy value to loop forever



83
84
85
86
# File 'lib/ios/sugarcube-animations/animation_chain.rb', line 83

def loop(times=true)
  @loop = times
  start
end