Class: ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::Outputs

Inherits:
Object
  • Object
show all
Defined in:
lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Boolean?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

  • other (Object)

    Can be any type.

Returns:

  • (Boolean, nil)


25
26
27
28
29
30
31
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb', line 25

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

  return false if delegations != other.delegations

  true
end

#delegationsArray

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Array)


15
16
17
# File 'lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb', line 15

def delegations
  @delegations ||= []
end