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
1164:   def self.helpers(*extensions, &block)
1165:     Application.helpers(*extensions, &block)
1166:   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
1152:   def self.new(base=Base, options={}, &block)
1153:     base = Class.new(base)
1154:     base.send :class_eval, &block if block_given?
1155:     base
1156:   end
register(*extensions, &block) click to toggle source

Extend the top-level DSL with the modules provided.

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.