Class: Shoryuken::Middleware::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/shoryuken/middleware/chain.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry


105
106
107
108
109
110
# File 'lib/shoryuken/middleware/chain.rb', line 105

def initialize(klass, *args)
  @klass = klass
  @args  = args

  patch_deprecated_middleware!(klass)
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass


104
105
106
# File 'lib/shoryuken/middleware/chain.rb', line 104

def klass
  @klass
end

Instance Method Details

#make_newObject


112
113
114
# File 'lib/shoryuken/middleware/chain.rb', line 112

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