class Sinatra::Application
modular applications.
top-level. Subclassing Sinatra::Base is heavily recommended for
inherit all settings, routes, handlers, and error pages from the
The Application class should not be subclassed, unless you want to
DSL methods executed on main are delegated to this class.
Execution context for classic style (top-level) applications. All
def self.register(*extensions, &block) #:nodoc:
def self.register(*extensions, &block) #:nodoc: added_methods = extensions.map {|m| m.public_instance_methods }.flatten Delegator.delegate(*added_methods) super(*extensions, &block) end