Class: Clutter::Actor
- Inherits:
-
Object
- Object
- Clutter::Actor
- Defined in:
- lib/clutter/actor.rb
Instance Method Summary collapse
- #save_easing_state ⇒ Object
-
#save_easing_state_without_block ⇒ Object
TODO: use prepend after Ruby 1.9 support is dropped.
Instance Method Details
#save_easing_state ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/clutter/actor.rb', line 21 def save_easing_state if block_given? save_easing_state_without_block begin yield ensure restore_easing_state end else save_easing_state_without_block end end |
#save_easing_state_without_block ⇒ Object
TODO: use prepend after Ruby 1.9 support is dropped.
20 |
# File 'lib/clutter/actor.rb', line 20 alias_method :save_easing_state_without_block, :save_easing_state |