Class: TorqueBox::Messaging::ProcessorMiddleware::MWare Private

Inherits:
Object
  • Object
show all
Defined in:
lib/torquebox/messaging/processor_middleware/chain.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, args) ⇒ MWare

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of MWare.



77
78
79
80
# File 'lib/torquebox/messaging/processor_middleware/chain.rb', line 77

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

Instance Attribute Details

#klassObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



75
76
77
# File 'lib/torquebox/messaging/processor_middleware/chain.rb', line 75

def klass
  @klass
end

Instance Method Details

#instanceObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



82
83
84
# File 'lib/torquebox/messaging/processor_middleware/chain.rb', line 82

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