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.
510 511 512 513 514 |
# File 'lib/steep/errors.rb', line 510 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.
507 508 509 |
# File 'lib/steep/errors.rb', line 507 def expected_tuple @expected_tuple end |
Instance Method Details
#to_s ⇒ Object
516 517 518 |
# File 'lib/steep/errors.rb', line 516 def to_s "#{location_to_str}: IncompatibleTuple: expected_tuple=#{expected_tuple}" end |