Class: ConvenientService::Utils::Object::InstanceVariableDelete Private
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Utils::Object::InstanceVariableDelete
- Defined in:
- lib/convenient_service/utils/object/instance_variable_delete.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
- #ivar_name ⇒ Object readonly private
- #object ⇒ Object readonly private
Instance Method Summary collapse
-
#call ⇒ Object
private
Value of ivar.
- #initialize(object, ivar_name) ⇒ void constructor private
Methods inherited from Support::Command
Constructor Details
#initialize(object, ivar_name) ⇒ 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.
29 30 31 32 |
# File 'lib/convenient_service/utils/object/instance_variable_delete.rb', line 29 def initialize(object, ivar_name) @object = object @ivar_name = ivar_name end |
Instance Attribute Details
#ivar_name ⇒ 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.
22 23 24 |
# File 'lib/convenient_service/utils/object/instance_variable_delete.rb', line 22 def ivar_name @ivar_name end |
#object ⇒ 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/instance_variable_delete.rb', line 16 def object @object 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 Value of ivar. Can be any type.
37 38 39 |
# File 'lib/convenient_service/utils/object/instance_variable_delete.rb', line 37 def call object.remove_instance_variable(ivar_name) if object.instance_variable_defined?(ivar_name) end |