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.
122 123 124 125 126 |
# File 'lib/steep/errors.rb', line 122 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.
120 121 122 |
# File 'lib/steep/errors.rb', line 120 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected.
119 120 121 |
# File 'lib/steep/errors.rb', line 119 def expected @expected end |
Instance Method Details
#to_s ⇒ Object
128 129 130 |
# File 'lib/steep/errors.rb', line 128 def to_s "#{location_to_str}: BlockParameterTypeMismatch: expected=#{expected}, actual=#{actual}" end |