Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1521 1521: def self.helpers(*extensions, &block) 1522: Delegator.target.helpers(*extensions, &block) 1523: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1509 1509: def self.new(base=Base, options={}, &block) 1510: base = Class.new(base) 1511: base.class_eval(&block) if block_given? 1512: base 1513: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1516 1516: def self.register(*extensions, &block) 1517: Delegator.target.register(*extensions, &block) 1518: end
[Validate]