Sha256: 5388ef4910458b52e0bd5baf893c3cff1f92496fabbecc4cc738668a8b13a8ae

Contents?: true

Size: 987 Bytes

Versions: 10

Compression:

Stored size: 987 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Method
            module Entities
              module Values
                ##
                # TODO: Specs.
                #
                class Reassignment
                  include Support::Delegate

                  attr_reader :value

                  delegate :to_s, :to_sym, to: :value

                  ##
                  # @param value [String, Symbol] Method name to reassign.
                  #
                  def initialize(value)
                    @value = value
                  end

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

                    return false if value != other.value

                    true
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.12.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb