Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1512 1512: def self.helpers(*extensions, &block) 1513: Application.helpers(*extensions, &block) 1514: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1500 1500: def self.new(base=Base, options={}, &block) 1501: base = Class.new(base) 1502: base.class_eval(&block) if block_given? 1503: base 1504: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1507 1507: def self.register(*extensions, &block) 1508: Application.register(*extensions, &block) 1509: end
[Validate]