Module: Rack::App::SingletonMethods::Inheritance
- Included in:
- Rack::App::SingletonMethods
- Defined in:
- lib/rack/app/singleton_methods/inheritance.rb
Instance Method Summary collapse
Instance Method Details
#on_inheritance(&block) ⇒ Object
3 4 5 6 7 |
# File 'lib/rack/app/singleton_methods/inheritance.rb', line 3 def on_inheritance(&block) @on_inheritance ||= [] @on_inheritance << block unless block.nil? @on_inheritance end |