Module: Sinatra::Delegator
- Defined in:
- lib/big_band.rb
Class Method Summary collapse
-
.included(klass) ⇒ Object
Hooks into Sinatra to allow easy integration with “require ‘sinatra’”.
Class Method Details
.included(klass) ⇒ Object
Hooks into Sinatra to allow easy integration with “require ‘sinatra’”.
254 255 256 257 258 259 |
# File 'lib/big_band.rb', line 254 def self.included(klass) BigBand.inherited(Sinatra::Application) Sinatra::Application.extensions.each do |ext| delegate(*ext.delegations) if ext.respond_to? :delegations end end |