Class: Mocktail::Explanation
- Inherits:
-
Object
- Object
- Mocktail::Explanation
- Extended by:
- T::Sig
- Defined in:
- lib/mocktail/value/explanation.rb,
lib/mocktail/sorbet/mocktail/value/explanation.rb
Direct Known Subclasses
DoubleExplanation, FakeMethodExplanation, NoExplanation, ReplacedTypeExplanation
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
Instance Method Summary collapse
-
#initialize(reference, message) ⇒ Explanation
constructor
A new instance of Explanation.
- #type ⇒ Object
Constructor Details
#initialize(reference, message) ⇒ Explanation
Returns a new instance of Explanation.
9 10 11 12 |
# File 'lib/mocktail/value/explanation.rb', line 9 def initialize(reference, ) @reference = reference @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
7 8 9 |
# File 'lib/mocktail/value/explanation.rb', line 7 def @message end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
5 6 7 |
# File 'lib/mocktail/value/explanation.rb', line 5 def reference @reference end |
Instance Method Details
#type ⇒ Object
14 15 16 |
# File 'lib/mocktail/value/explanation.rb', line 14 def type self.class end |