Class: Subserver::Middleware::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.



118
119
120
121
# File 'lib/subserver/middleware/chain.rb', line 118

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



116
117
118
# File 'lib/subserver/middleware/chain.rb', line 116

def klass
  @klass
end

Instance Method Details

#make_newObject



123
124
125
# File 'lib/subserver/middleware/chain.rb', line 123

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