Class: Steep::Errors::BlockTypeMismatch
- 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:) ⇒ BlockTypeMismatch
constructor
A new instance of BlockTypeMismatch.
- #to_s ⇒ Object
Methods included from ResultPrinter
Methods inherited from Base
Constructor Details
#initialize(node:, expected:, actual:, result:) ⇒ BlockTypeMismatch
Returns a new instance of BlockTypeMismatch.
200 201 202 203 204 205 |
# File 'lib/steep/errors.rb', line 200 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.
195 196 197 |
# File 'lib/steep/errors.rb', line 195 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
194 195 196 |
# File 'lib/steep/errors.rb', line 194 def expected @expected end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
196 197 198 |
# File 'lib/steep/errors.rb', line 196 def result @result end |
Instance Method Details
#to_s ⇒ Object
207 208 209 |
# File 'lib/steep/errors.rb', line 207 def to_s "#{location_to_str}: BlockTypeMismatch: expected=#{expected}, actual=#{actual}" end |