Class: Mocktail::Explanation

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/mocktail/value/explanation.rb,
lib/mocktail/sorbet/mocktail/value/explanation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @reference = reference
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



7
8
9
# File 'lib/mocktail/value/explanation.rb', line 7

def message
  @message
end

#referenceObject (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

#typeObject



14
15
16
# File 'lib/mocktail/value/explanation.rb', line 14

def type
  self.class
end