Sha256: 870e95b48c0363fd8ab88f72639de6665fecf9287c07128d03ecca247cf00631

Contents?: true

Size: 1.3 KB

Versions: 6

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultSteps
        module Entities
          class Method
            module Entities
              module Callers
                class Base
                  include Support::AbstractMethod
                  include Support::Copyable

                  ##
                  # TODO: A better name for `object`. Wrapped object, `target`?
                  #
                  attr_reader :object

                  abstract_method \
                    :calculate_value,
                    :validate_as_input_for_container!,
                    :validate_as_output_for_container!,
                    :define_output_in_container!

                  def initialize(object)
                    @object = object
                  end

                  def reassignment?(name)
                    false
                  end

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

                    return false if object != other.object

                    true
                  end

                  def to_args
                    [object]
                  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/callers/base.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb