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.


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

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass


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

def klass
  @klass
end

Instance Method Details

#make_newObject


115
116
117
# File 'lib/shoryuken/middleware/chain.rb', line 115

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