Module: Exekutor::Asynchronous
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/exekutor/asynchronous.rb
Overview
Mixin to let methods be executed asynchronously by active job
Defined Under Namespace
Classes: AsyncMethodJob, Error
Class Method Summary collapse
-
.validate_args(delegate, method, *args, **kwargs) ⇒ ArgumentError?
Validates whether the given arguments match the expected parameters for
method
.
Class Method Details
.validate_args(delegate, method, *args, **kwargs) ⇒ ArgumentError?
Validates whether the given arguments match the expected parameters for method
103 104 105 106 107 108 |
# File 'lib/exekutor/asynchronous.rb', line 103 def self.validate_args(delegate, method, *args, **kwargs) error = ArgumentValidator.new(delegate, method).validate(args, kwargs) return nil unless error ArgumentError.new(error) end |