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

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (MWare) initialize(klass, args)

Returns a new instance of MWare



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

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

Instance Attribute Details

- (Object) :klass (readonly)

Returns the value of attribute :klass



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

def :klass
  @:klass
end

Instance Method Details

- (Object) instance



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

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