AlkantarClanX12

Your IP : 3.12.152.102


Current Path : /opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/
Upload File :
Current File : //opt/alt/ruby19/lib64/ruby/gems/1.9.1/doc/rack-1.6.4/ri/Rack/Builder/cdesc-Builder.ri

U:RDoc::NormalClass[iI"Builder:EFI"Rack::Builder;FI"Object;Fo:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"GRack::Builder implements a small DSL to iteratively construct Rack;FI"applications.;Fo:RDoc::Markup::BlankLineo;	;[I"
Example:;F@o:RDoc::Markup::Verbatim;[I"require 'rack/lobster'
;FI" app = Rack::Builder.new do
;FI"  use Rack::CommonLogger
;FI"   use Rack::ShowExceptions
;FI"  map "/lobster" do
;FI"    use Rack::Lint
;FI"    run Rack::Lobster.new
;FI"  end
;FI"	end
;FI"
;FI"
run app
;Fo;	;[I"Or;F@o;;[I" app = Rack::Builder.app do
;FI"  use Rack::CommonLogger
;FI"L  run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['OK']] }
;FI"	end
;FI"
;FI"
run app
;Fo;	;[I"L+use+ adds middleware to the stack, +run+ dispatches to an application.;FI"GYou can use +map+ to construct a Rack::URLMap in a convenient way.;F:
@fileI"lib/rack/builder.rb;F;0[[[[[I"
class;F[[:public[	[I"app;F@2[I"new;F@2[I"new_from_string;F@2[I"parse_file;F@2[:protected[[:private[[I"
instance;F[[;
[[I"	call;F@2[I"map;F@2[I"run;F@2[I"to_app;F@2[I"use;F@2[I"warmup;F@2[;[[;[