class MotionWizard::AnimationStrategy::BaseAnimationStrategy
Attributes
already_on_final_position[RW]
duration[RW]
Public Class Methods
new()
click to toggle source
# File lib/motion-wizard/animation_strategy/base_animation_strategy.rb, line 6 def initialize @duration = 0.5 end
Public Instance Methods
animate()
click to toggle source
# File lib/motion-wizard/animation_strategy/base_animation_strategy.rb, line 20 def animate raise "Subclass responsability" end
hide_view(view, &after_block)
click to toggle source
# File lib/motion-wizard/animation_strategy/base_animation_strategy.rb, line 15 def hide_view(view, &after_block) @hide_view = view @hide_view_after_block = after_block end
show_view(view, &after_block)
click to toggle source
# File lib/motion-wizard/animation_strategy/base_animation_strategy.rb, line 10 def show_view(view, &after_block) @show_view = view @show_view_after_block = after_block end