Sinatra

Constants

VERSION

Public Class Methods

helpers(*extensions, &block) click to toggle source

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

# File lib/sinatra/base.rb, line 1510
def self.helpers(*extensions, &block)
  Application.helpers(*extensions, &block)
end
new(base=Base, options={}, &block) click to toggle source

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

# File lib/sinatra/base.rb, line 1498
def self.new(base=Base, options={}, &block)
  base = Class.new(base)
  base.class_eval(&block) if block_given?
  base
end
register(*extensions, &block) click to toggle source

Extend the top-level DSL with the modules provided.

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.