AlkantarClanX12
Current Path : /opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/ri/Rack/Builder/ |
Current File : //opt/alt/ruby26/lib64/ruby/gems/2.6.0/doc/rack-3.0.8/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.;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"Ato guess which constant will be the Rack application to run.;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"(path);T@*FI"Builder;TcRDoc::NormalClass00