Sha256: c3166c212588ed870a7b88108eb45f185d45fd401c3d7913f78c215707df3ea5

Contents?: true

Size: 830 Bytes

Versions: 3

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module RSpec
    module PrimitiveMatchers
      module Classes
        class DelegateTo
          module Entities
            class Outputs
              ##
              # @api private
              #
              # @return [Array]
              #
              def delegations
                @delegations ||= []
              end

              ##
              # @api private
              #
              # @param other [Object] Can be any type.
              # @return [Boolean, nil]
              #
              def ==(other)
                return unless other.instance_of?(self.class)

                return false if delegations != other.delegations

                true
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb
convenient_service-0.19.0 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb
convenient_service-0.18.0 lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb