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