Class: Steep::Errors::BreakTypeMismatch
- Includes:
- ResultPrinter
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, expected:, actual:, result:) ⇒ BreakTypeMismatch
constructor
A new instance of BreakTypeMismatch.
- #to_s ⇒ Object
Methods included from ResultPrinter
Methods inherited from Base
Constructor Details
#initialize(node:, expected:, actual:, result:) ⇒ BreakTypeMismatch
Returns a new instance of BreakTypeMismatch.
210 211 212 213 214 215 |
# File 'lib/steep/errors.rb', line 210 def initialize(node:, expected:, actual:, result:) super(node: node) @expected = expected @actual = actual @result = result end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
205 206 207 |
# File 'lib/steep/errors.rb', line 205 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
204 205 206 |
# File 'lib/steep/errors.rb', line 204 def expected @expected end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
206 207 208 |
# File 'lib/steep/errors.rb', line 206 def result @result end |
Instance Method Details
#to_s ⇒ Object
217 218 219 |
# File 'lib/steep/errors.rb', line 217 def to_s "#{location_to_str}: BreakTypeMismatch: expected=#{expected}, actual=#{actual}" end |