lib/rack/amf/core.rb
# Transition from the currently processing event to another event
# after triggering event handlers.
Transition from the currently processing event to another event
after triggering event handlers.
Transition from the currently processing event to another event after triggering event handlers .
def transition(from, to)
      ev, *args = trigger(from)
      raise IllegalTransition, "No transition to :#{ev}" unless to.include?(ev)
      ev = yield ev if block_given?
      send "perform_#{ev}", *args
    end
def transition ( from , to ) ev , * args = trigger ( from ) raise IllegalTransition , "No transition to :#{ev}" unless to . include? ( ev ) ev = yield ev if block_given? send "perform_#{ev}" , * args end
Transition from the currently processing event to another event
after triggering event handlers.
Transition from the currently processing event to another event after triggering event handlers .
from
<not_specific>
to
<not_specific>