Class: Toro::Middleware::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.


71
72
73
74
# File 'lib/toro/middleware/chain.rb', line 71

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass


69
70
71
# File 'lib/toro/middleware/chain.rb', line 69

def klass
  @klass
end

Instance Method Details

#make_newObject


76
77
78
# File 'lib/toro/middleware/chain.rb', line 76

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