Methods
H
N
R
Classes and Modules
Constants
VERSION = '1.0.a'
Class Public methods
helpers(*extensions, &block)

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

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

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

      # 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
register(*extensions, &block)

Extend the top-level DSL with the modules provided.

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