%PDF- %PDF-
Direktori : /opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/ri/Rack/Builder/ |
Current File : //opt/cpanel/ea-ruby27/root/usr/share/gems/doc/rack-2.2.10/ri/Rack/Builder/parse_file-c.ri |
U:RDoc::AnyMethod[iI"parse_file:ETI"Rack::Builder::parse_file;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I";Parse the given config file to get a Rack application.;To:RDoc::Markup::BlankLine o; ; [ I":If the config file ends in +.ru+, it is treated as a ;TI"8rackup file and the contents will be treated as if ;TI"=specified inside a Rack::Builder block, using the given ;TI" options.;T@o; ; [ I"5If the config file does not end in +.ru+, it is ;TI"9required and Rack will use the basename of the file ;TI"Bto guess which constant will be the Rack application to run. ;TI"4The options given will be ignored in this case.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"+Rack::Builder.parse_file('config.ru') ;TI"6# Rack application built using Rack::Builder.new ;TI" ;TI"(Rack::Builder.parse_file('app.rb') ;TI"8# requires app.rb, which can be anywhere in Ruby's ;TI"8# load path. After requiring, assumes App constant ;TI"!# contains Rack application ;TI" ;TI"-Rack::Builder.parse_file('./my_app.rb') ;TI"4# requires ./my_app.rb, which should be in the ;TI"6# process's current directory. After requiring, ;TI"7# assumes MyApp constant contains Rack application;T:@format0: @fileI"lib/rack/builder.rb;T:0@omit_headings_from_table_of_contents_below000[ I")(config, opts = Server::Options.new);T@,FI"Builder;TcRDoc::NormalClass00