Method: Ray::Animation::BlockAnimation#setup
- Defined in:
- lib/ray/animation/block_animation.rb
#setup(opts) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/ray/animation/block_animation.rb', line 18 def setup(opts) @block = opts[:block] || opts[:proc] @reversed = opts.key?(:reversed) ? opts[:reversed] : false self.duration = opts[:duration] end |