ok
Direktori : /opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.8/ri/Rack/Builder/ |
Current File : //opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.8/ri/Rack/Builder/cdesc-Builder.ri |
U:RDoc::NormalClass[iI"Builder:ETI"Rack::Builder;TI"Object;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"HRack::Builder implements a small DSL to iteratively construct Rack ;TI"applications.;To:RDoc::Markup::BlankLine o; ;[I" Example:;T@o:RDoc::Markup::Verbatim;[I"require 'rack/lobster' ;TI" app = Rack::Builder.new do ;TI" use Rack::CommonLogger ;TI" use Rack::ShowExceptions ;TI" map "/lobster" do ;TI" use Rack::Lint ;TI" run Rack::Lobster.new ;TI" end ;TI" end ;TI" ;TI" run app ;T:@format0o; ;[I"Or;T@o;;[I" app = Rack::Builder.app do ;TI" use Rack::CommonLogger ;TI"L run lambda { |env| [200, {'Content-Type' => 'text/plain'}, ['OK']] } ;TI" end ;TI" ;TI" run app ;T;0o; ;[I"M+use+ adds middleware to the stack, +run+ dispatches to an application. ;TI"GYou can use +map+ to construct a Rack::URLMap in a convenient way.;T: @fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below0; 0;0[ [U:RDoc::Constant[i I"UTF_8_BOM;TI"Rack::Builder::UTF_8_BOM;T:public0o;;[o; ;[I"ihttps://stackoverflow.com/questions/2223882/whats-the-difference-between-utf-8-and-utf-8-without-bom;T; @2;0@2@cRDoc::NormalClass0[ [[I" class;T[[;[ [I"app;TI"lib/rack/builder.rb;T[I"load_file;T@H[I"new;T@H[I"new_from_string;T@H[I"parse_file;T@H[:protected[ [:private[ [I" instance;T[[;[[I" call;T@H[I"freeze_app;T@H[I"map;T@H[I"run;T@H[I"to_app;T@H[I"use;T@H[I"warmup;T@H[;[ [;[[I"generate_map;T@H[ [U:RDoc::Context::Section[i 0o;;[ ; 0;0[@2I" Rack;TcRDoc::NormalModule