Class: Steep::Errors::IncompatibleTypeCase
- Includes:
- ResultPrinter
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#relation ⇒ Object
readonly
Returns the value of attribute relation.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#var_name ⇒ Object
readonly
Returns the value of attribute var_name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, var_name:, result:, relation:) ⇒ IncompatibleTypeCase
constructor
A new instance of IncompatibleTypeCase.
- #to_s ⇒ Object
Methods included from ResultPrinter
Methods inherited from Base
Constructor Details
#initialize(node:, var_name:, result:, relation:) ⇒ IncompatibleTypeCase
Returns a new instance of IncompatibleTypeCase.
466 467 468 469 470 471 |
# File 'lib/steep/errors.rb', line 466 def initialize(node:, var_name:, result:, relation:) super(node: node) @var_name = var_name @result = result @relation = relation end |
Instance Attribute Details
#relation ⇒ Object (readonly)
Returns the value of attribute relation.
464 465 466 |
# File 'lib/steep/errors.rb', line 464 def relation @relation end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
463 464 465 |
# File 'lib/steep/errors.rb', line 463 def result @result end |
#var_name ⇒ Object (readonly)
Returns the value of attribute var_name.
462 463 464 |
# File 'lib/steep/errors.rb', line 462 def var_name @var_name end |
Instance Method Details
#to_s ⇒ Object
475 476 477 |
# File 'lib/steep/errors.rb', line 475 def to_s "#{location_to_str}: IncompatibleTypeCase: var_name=#{var_name}, #{relation}" end |