Class: Matryoshka::Document::Delegate
- Inherits:
-
Object
- Object
- Matryoshka::Document::Delegate
- Defined in:
- lib/matryoshka/document/delegate.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
Class Method Summary collapse
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Delegate
constructor
A new instance of Delegate.
Constructor Details
#initialize(app) ⇒ Delegate
Returns a new instance of Delegate.
4 5 6 |
# File 'lib/matryoshka/document/delegate.rb', line 4 def initialize(app) self.application = app end |
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
2 3 4 |
# File 'lib/matryoshka/document/delegate.rb', line 2 def application @application end |
Class Method Details
.accepts ⇒ Object
16 17 18 |
# File 'lib/matryoshka/document/delegate.rb', line 16 def self.accepts [] end |
.extentions ⇒ Object
12 13 14 |
# File 'lib/matryoshka/document/delegate.rb', line 12 def self.extentions [] end |
Instance Method Details
#call(env) ⇒ Object
8 9 10 |
# File 'lib/matryoshka/document/delegate.rb', line 8 def call(env) application.class(env) end |