Module Sinatra
In: lib/sinatra/showexceptions.rb
lib/sinatra/main.rb
lib/sinatra/base.rb
Rack::ShowExceptions ShowExceptions Rack::Response Response Base Application\n[lib/sinatra/base.rb\nlib/sinatra/main.rb] Rack::Utils NameError NotFound Rack::Request Request ::File StaticFile lib/sinatra/base.rb lib/sinatra/showexceptions.rb Templates Delegator lib/sinatra/base.rb Helpers Sinatra dot/m_4_0.png

Methods

helpers   new   register  

Classes and Modules

Module Sinatra::Helpers
Module Sinatra::Templates
Class Sinatra::Application
Class Sinatra::Base
Class Sinatra::Request
Class Sinatra::Response
Class Sinatra::ShowExceptions

Constants

VERSION = '1.0.a'

Public Class methods

Include the helper modules provided in Sinatra‘s request context.

[Source]

      # File lib/sinatra/base.rb, line 1150
1150:   def self.helpers(*extensions, &block)
1151:     Application.helpers(*extensions, &block)
1152:   end

Create a new Sinatra application. The block is evaluated in the new app‘s class scope.

[Source]

      # File lib/sinatra/base.rb, line 1138
1138:   def self.new(base=Base, options={}, &block)
1139:     base = Class.new(base)
1140:     base.send :class_eval, &block if block_given?
1141:     base
1142:   end

Extend the top-level DSL with the modules provided.

[Source]

      # File lib/sinatra/base.rb, line 1145
1145:   def self.register(*extensions, &block)
1146:     Application.register(*extensions, &block)
1147:   end

[Validate]