Include the helper modules provided in Sinatra's request context.
# File lib/sinatra/base.rb, line 1519 def self.helpers(*extensions, &block) Delegator.target.helpers(*extensions, &block) end
Create a new Sinatra application. The block is evaluated in the new app's class scope.
# File lib/sinatra/base.rb, line 1507 def self.new(base=Base, options={}, &block) base = Class.new(base) base.class_eval(&block) if block_given? base end
Generated with the Darkfish Rdoc Generator 2.