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
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
Generated with the Darkfish Rdoc Generator 2.