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.
191 192 193 194 195 196 |
# File 'lib/steep/errors.rb', line 191 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.
186 187 188 |
# File 'lib/steep/errors.rb', line 186 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
185 186 187 |
# File 'lib/steep/errors.rb', line 185 def expected @expected end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
187 188 189 |
# File 'lib/steep/errors.rb', line 187 def result @result end |
Instance Method Details
#to_s ⇒ Object
198 199 200 |
# File 'lib/steep/errors.rb', line 198 def to_s "#{location_to_str}: BlockTypeMismatch: expected=#{expected}, actual=#{actual}" end |