Class: Funktor::MiddlewareChain::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/funktor/middleware_chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#klassObject (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

#instantiateObject



57
58
59
# File 'lib/funktor/middleware_chain.rb', line 57

def instantiate
  @klass.new(*@args)
end