Class: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Entities::Values::Reassignment

Inherits:
Object
  • Object
show all
Includes:
ConvenientService::Support::Delegate
Defined in:
lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb

Overview

TODO: Specs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConvenientService::Support::Concern

included

Constructor Details

#initialize(value) ⇒ Reassignment

Returns a new instance of Reassignment.

Parameters:

  • value (String, Symbol)

    Method name to reassign.



24
25
26
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb', line 24

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



17
18
19
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb', line 17

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb', line 28

def ==(other)
  return unless other.instance_of?(self.class)

  return false if value != other.value

  true
end