Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1472 1472: def self.helpers(*extensions, &block) 1473: Application.helpers(*extensions, &block) 1474: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1460 1460: def self.new(base=Base, options={}, &block) 1461: base = Class.new(base) 1462: base.class_eval(&block) if block_given? 1463: base 1464: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1467 1467: def self.register(*extensions, &block) 1468: Application.register(*extensions, &block) 1469: end
[Validate]