Class: Funktor::MiddlewareChain::Entry
- Inherits:
-
Object
- Object
- Funktor::MiddlewareChain::Entry
- Defined in:
- lib/funktor/middleware_chain.rb
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
-
#initialize(klass, *args) ⇒ Entry
constructor
A new instance of Entry.
- #instantiate ⇒ Object
Constructor Details
#initialize(klass, *args) ⇒ Entry
Returns a new instance of Entry.
52 53 54 55 |
# File 'lib/funktor/middleware_chain.rb', line 52 def initialize(klass, *args) @klass = klass @args = args end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
50 51 52 |
# File 'lib/funktor/middleware_chain.rb', line 50 def klass @klass end |
Instance Method Details
#instantiate ⇒ Object
57 58 59 |
# File 'lib/funktor/middleware_chain.rb', line 57 def instantiate @klass.new(*@args) end |