Class: Matryoshka::Document::Delegate

Inherits:
Object
  • Object
show all
Defined in:
lib/matryoshka/document/delegate.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#applicationObject

Returns the value of attribute application.



2
3
4
# File 'lib/matryoshka/document/delegate.rb', line 2

def application
  @application
end

Class Method Details

.acceptsObject



16
17
18
# File 'lib/matryoshka/document/delegate.rb', line 16

def self.accepts
  []
end

.extentionsObject



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