Class: PikaQue::Middleware::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ Entry

Returns a new instance of Entry.



80
81
82
83
# File 'lib/pika_que/middleware/chain.rb', line 80

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

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



78
79
80
# File 'lib/pika_que/middleware/chain.rb', line 78

def klass
  @klass
end

Instance Method Details

#make_newObject



85
86
87
# File 'lib/pika_que/middleware/chain.rb', line 85

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