Class: Creeper::Middleware::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.



90
91
92
93
# File 'lib/creeper/middleware/chain.rb', line 90

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



89
90
91
# File 'lib/creeper/middleware/chain.rb', line 89

def klass
  @klass
end

Instance Method Details

#make_newObject



95
96
97
# File 'lib/creeper/middleware/chain.rb', line 95

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