Class: PopulateMe::Attachment::Middleware
- Inherits:
-
Object
- Object
- PopulateMe::Attachment::Middleware
- Defined in:
- lib/populate_me/attachment.rb
Class Attribute Summary collapse
-
.parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
- #parent ⇒ Object
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
173 174 175 |
# File 'lib/populate_me/attachment.rb', line 173 def initialize app @proxied = parent.middleware.new(app,*parent.) end |
Class Attribute Details
.parent ⇒ Object
Returns the value of attribute parent.
166 167 168 |
# File 'lib/populate_me/attachment.rb', line 166 def parent @parent end |
Instance Method Details
#call(env) ⇒ Object
177 178 179 |
# File 'lib/populate_me/attachment.rb', line 177 def call env @proxied.call env end |
#parent ⇒ Object
169 170 171 |
# File 'lib/populate_me/attachment.rb', line 169 def parent self.class.parent end |