Class: TorqueBox::Messaging::Backgroundable::BackgroundProxy Private
- Inherits:
-
Object
- Object
- TorqueBox::Messaging::Backgroundable::BackgroundProxy
- Defined in:
- lib/torquebox/messaging/backgroundable.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 Method Summary collapse
-
#initialize(receiver, options) ⇒ BackgroundProxy
constructor
private
A new instance of BackgroundProxy.
- #method_missing(method, *args, &block) ⇒ Object private
Constructor Details
#initialize(receiver, options) ⇒ BackgroundProxy
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 BackgroundProxy.
181 182 183 184 |
# File 'lib/torquebox/messaging/backgroundable.rb', line 181 def initialize(receiver, ) @receiver = receiver @options = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
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.
186 187 188 189 190 |
# File 'lib/torquebox/messaging/backgroundable.rb', line 186 def method_missing(method, *args, &block) @receiver.method_missing(method, *args, &block) unless @receiver.respond_to?(method) raise ArgumentError.new("Backgrounding a method with a block argument is not supported. If you need this feature, please file a feature request at http://issues.jboss.org/browse/TORQUE") if block_given? Util.(@receiver, method, args, @options) end |