Class: Mocktail::ReplacedTypeExplanation

Inherits:
Explanation show all
Defined in:
lib/mocktail/value/explanation.rb,
lib/mocktail/sorbet/mocktail/value/explanation.rb

Instance Attribute Summary collapse

Attributes inherited from Explanation

#message

Instance Method Summary collapse

Methods inherited from Explanation

#type

Constructor Details

#initialize(reference, message) ⇒ ReplacedTypeExplanation

Returns a new instance of ReplacedTypeExplanation.



40
41
42
43
# File 'lib/mocktail/value/explanation.rb', line 40

def initialize(reference, message)
  @reference = reference
  @message = message
end

Instance Attribute Details

#referenceObject (readonly)

Returns the value of attribute reference.



38
39
40
# File 'lib/mocktail/value/explanation.rb', line 38

def reference
  @reference
end