Module Sinatra
In: lib/sinatra/showexceptions.rb
lib/sinatra/base.rb
lib/sinatra/main.rb

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.1.2'

Public Class methods

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

[Source]

      # File lib/sinatra/base.rb, line 1383
1383:   def self.helpers(*extensions, &block)
1384:     Application.helpers(*extensions, &block)
1385:   end

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

[Source]

      # File lib/sinatra/base.rb, line 1371
1371:   def self.new(base=Base, options={}, &block)
1372:     base = Class.new(base)
1373:     base.class_eval(&block) if block_given?
1374:     base
1375:   end

Extend the top-level DSL with the modules provided.

[Source]

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

[Validate]