Class: ConvenientService::Utils::Method::LooseCall Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Method::LooseCall
- Defined in:
- lib/convenient_service/utils/method/loose_call.rb
Overview
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.
Defined Under Namespace
Classes: Signature
Instance Attribute Summary collapse
- #args ⇒ Object readonly private
- #block ⇒ Object readonly private
- #kwargs ⇒ Object readonly private
- #method ⇒ Object readonly private
Instance Method Summary collapse
-
#call ⇒ Object
private
Can be any type.
- #initialize(method, *args, **kwargs, &block) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(method, *args, **kwargs, &block) ⇒ void
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.
301 302 303 304 305 306 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 301 def initialize(method, *args, **kwargs, &block) @method = method @args = args @kwargs = kwargs @block = block end |
Instance Attribute Details
#args ⇒ Object (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.
280 281 282 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 280 def args @args end |
#block ⇒ Object (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.
292 293 294 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 292 def block @block end |
#kwargs ⇒ Object (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.
286 287 288 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 286 def kwargs @kwargs end |
#method ⇒ Object (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.
274 275 276 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 274 def method @method end |
Instance Method Details
#call ⇒ 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.
Returns Can be any type.
314 315 316 317 318 319 320 |
# File 'lib/convenient_service/utils/method/loose_call.rb', line 314 def call method.call( *signature.loose_args_from(args), **signature.loose_kwargs_from(kwargs), &signature.loose_block_from(block) ) end |