class Rack::Delegate::Dispatcher

Public Class Methods

configure(&block) click to toggle source
# File lib/rack/delegate/dispatcher.rb, line 4
def self.configure(&block)
  new(Configuration.from_block(&block))
end

Public Instance Methods

dispatch(request) click to toggle source
# File lib/rack/delegate/dispatcher.rb, line 8
def dispatch(request)
  catch :dispatched do
    actions.each do |action|
      action.dispatch(request)
    end

    nil
  end
end