Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1545 1545: def self.helpers(*extensions, &block) 1546: Delegator.target.helpers(*extensions, &block) 1547: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1533 1533: def self.new(base=Base, options={}, &block) 1534: base = Class.new(base) 1535: base.class_eval(&block) if block_given? 1536: base 1537: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1540 1540: def self.register(*extensions, &block) 1541: Delegator.target.register(*extensions, &block) 1542: end
[Validate]