lib/rack/cache/core.rb
# Trigger processing of the event specified and return an array containing
# the name of the next transition and any arguments provided to the
# transitioning statement.
Trigger processing of the event specified and return an array containing
the name of the next transition and any arguments provided to the
transitioning statement.
Trigger processing of the event specified and return an array containing the name of the next transition and any arguments provided to the transitioning statement .
def trigger(event)
      if @events.include? event
        @triggered << event
        catch(:transition) do
          @events[event].each { |block| instance_eval(&block) }
          nil
        end
      else
        raise NameError, "No such event: #{event}"
      end
    end
def trigger ( event ) if @events . include? event @triggered << event catch ( :transition ) do @events [ event ] . each { | block | instance_eval ( & block ) } nil end else raise NameError , "No such event: #{event}" end end
Trigger processing of the event specified and return an array containing
the name of the next transition and any arguments provided to the
transitioning statement.
Trigger processing of the event specified and return an array containing the name of the next transition and any arguments provided to the transitioning statement .
event
<not_specific>