Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1389 1389: def self.helpers(*extensions, &block) 1390: Application.helpers(*extensions, &block) 1391: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1377 1377: def self.new(base=Base, options={}, &block) 1378: base = Class.new(base) 1379: base.class_eval(&block) if block_given? 1380: base 1381: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1384 1384: def self.register(*extensions, &block) 1385: Application.register(*extensions, &block) 1386: end
[Validate]