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.
501 502 503 504 505 |
# File 'lib/steep/errors.rb', line 501 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.
498 499 500 |
# File 'lib/steep/errors.rb', line 498 def expected_tuple @expected_tuple end |
Instance Method Details
#to_s ⇒ Object
507 508 509 |
# File 'lib/steep/errors.rb', line 507 def to_s "#{location_to_str}: IncompatibleTuple: expected_tuple=#{expected_tuple}" end |