Methods
A
Included Modules
Constants
Routes = ActionDispatch::Routing::RouteSet.new.tap do |app| app.draw do get '/:segment' => lambda { |env| path_params = env['action_dispatch.request.path_parameters'] [200, { 'Content-Type' => 'text/plain' }, [path_params[:segment]]] }, :as => :segment get '/*splat' => lambda { |env| path_params = env['action_dispatch.request.path_parameters'] [200, { 'Content-Type' => 'text/plain' }, [path_params[:splat]]] }, :as => :splat end end
 
APP = build_app Routes
 
Instance Public methods
app()
# File actionpack/test/dispatch/routing_test.rb, line 3982
def app; APP end