Class: Steep::Errors::IncompatibleTuple
- Includes:
- ResultPrinter
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#expected_tuple ⇒ Object
readonly
Returns the value of attribute expected_tuple.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, expected_tuple:, result:) ⇒ IncompatibleTuple
constructor
A new instance of IncompatibleTuple.
- #to_s ⇒ Object
Methods included from ResultPrinter
Methods inherited from Base
Constructor Details
#initialize(node:, expected_tuple:, result:) ⇒ IncompatibleTuple
Returns a new instance of IncompatibleTuple.
496 497 498 499 500 |
# File 'lib/steep/errors.rb', line 496 def initialize(node:, expected_tuple:, result:) super(node: node) @result = result @expected_tuple = expected_tuple end |
Instance Attribute Details
#expected_tuple ⇒ Object (readonly)
Returns the value of attribute expected_tuple.
493 494 495 |
# File 'lib/steep/errors.rb', line 493 def expected_tuple @expected_tuple end |
Instance Method Details
#to_s ⇒ Object
502 503 504 |
# File 'lib/steep/errors.rb', line 502 def to_s "#{location_to_str}: IncompatibleTuple: expected_tuple=#{expected_tuple}" end |