Sha256: 2fe561058cd3eca57fb2486d0dbb1ad873f62dab0c87504a15791be33b7e2634

Contents?: true

Size: 989 Bytes

Versions: 6

Compression:

Stored size: 989 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultSteps
        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

6 entries across 6 versions & 1 rubygems

Version Path
convenient_service-0.10.1 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb