Method: ConvenientService::Utils::Object::SafeSend#initialize

Defined in:
lib/convenient_service/utils/object/safe_send.rb

#initialize(object, method, *args, **kwargs, &block) ⇒ SafeSend

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 SafeSend.

Since:

  • 1.0.0

Parameters:

  • Can be any type.

API:

  • private



62
63
64
65
66
67
68
# File 'lib/convenient_service/utils/object/safe_send.rb', line 62

def initialize(object, method, *args, **kwargs, &block)
  @object = object
  @method = method
  @args = args
  @kwargs = kwargs
  @block = block
end