Class: Jackhammer::MiddlewareCollection::Entry
- Inherits:
-
Struct
- Object
- Struct
- Jackhammer::MiddlewareCollection::Entry
- Defined in:
- lib/jackhammer/middleware_collection.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#klass ⇒ Object
Returns the value of attribute klass.
-
#kwargs ⇒ Object
Returns the value of attribute kwargs.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
21 22 23 |
# File 'lib/jackhammer/middleware_collection.rb', line 21 def args @args end |
#block ⇒ Object
Returns the value of attribute block
21 22 23 |
# File 'lib/jackhammer/middleware_collection.rb', line 21 def block @block end |
#klass ⇒ Object
Returns the value of attribute klass
21 22 23 |
# File 'lib/jackhammer/middleware_collection.rb', line 21 def klass @klass end |
#kwargs ⇒ Object
Returns the value of attribute kwargs
21 22 23 |
# File 'lib/jackhammer/middleware_collection.rb', line 21 def kwargs @kwargs end |
Instance Method Details
#instantiate ⇒ Object
22 23 24 25 26 |
# File 'lib/jackhammer/middleware_collection.rb', line 22 def instantiate return klass unless klass.respond_to?(:new) klass.new(*args, **kwargs, &block) end |