Class: Steep::Errors::BlockParameterTypeMismatch
- 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.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, expected:, actual:) ⇒ BlockParameterTypeMismatch
constructor
A new instance of BlockParameterTypeMismatch.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, expected:, actual:) ⇒ BlockParameterTypeMismatch
Returns a new instance of BlockParameterTypeMismatch.
113 114 115 116 117 |
# File 'lib/steep/errors.rb', line 113 def initialize(node:, expected:, actual:) super(node: node) @expected = expected @actual = actual end |
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual.
111 112 113 |
# File 'lib/steep/errors.rb', line 111 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
110 111 112 |
# File 'lib/steep/errors.rb', line 110 def expected @expected end |
Instance Method Details
#to_s ⇒ Object
119 120 121 |
# File 'lib/steep/errors.rb', line 119 def to_s "#{location_to_str}: BlockParameterTypeMismatch: expected=#{expected}, actual=#{actual}" end |