Class: Clutter::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/clutter/actor.rb

Instance Method Summary collapse

Instance Method Details

#save_easing_stateObject



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_blockObject

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