Class: ConvenientService::Utils::Object::WithOneTimeObject Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Object::WithOneTimeObject
- Defined in:
- lib/convenient_service/utils/object/with_one_time_object.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.
Instance Attribute Summary collapse
- #block ⇒ Object readonly private
Instance Method Summary collapse
-
#call ⇒ Object
private
Can be any type.
- #initialize(&block) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(&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.
22 23 24 |
# File 'lib/convenient_service/utils/object/with_one_time_object.rb', line 22 def initialize(&block) @block = block end |
Instance Attribute Details
#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.
16 17 18 |
# File 'lib/convenient_service/utils/object/with_one_time_object.rb', line 16 def block @block 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.
29 30 31 |
# File 'lib/convenient_service/utils/object/with_one_time_object.rb', line 29 def call block.call(::Object.new) end |