Include the helper modules provided in Sinatra‘s request context.
[Source]
# File lib/sinatra/base.rb, line 1166 1166: def self.helpers(*extensions, &block) 1167: Application.helpers(*extensions, &block) 1168: end
Create a new Sinatra application. The block is evaluated in the new app‘s class scope.
# File lib/sinatra/base.rb, line 1154 1154: def self.new(base=Base, options={}, &block) 1155: base = Class.new(base) 1156: base.send :class_eval, &block if block_given? 1157: base 1158: end
Extend the top-level DSL with the modules provided.
# File lib/sinatra/base.rb, line 1161 1161: def self.register(*extensions, &block) 1162: Application.register(*extensions, &block) 1163: end
[Validate]