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 1164
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 1152
def self.new(base=Base, options={}, &block)
  base = Class.new(base)
  base.send :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 1159
def self.register(*extensions, &block)
  Application.register(*extensions, &block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.