Class: Steep::Errors::IncompatibleAnnotation
- 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:) ⇒ IncompatibleAnnotation
constructor
A new instance of IncompatibleAnnotation.
- #to_s ⇒ Object
Methods included from ResultPrinter
Methods inherited from Base
Constructor Details
#initialize(node:, var_name:, result:, relation:) ⇒ IncompatibleAnnotation
Returns a new instance of IncompatibleAnnotation.
447 448 449 450 451 452 |
# File 'lib/steep/errors.rb', line 447 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.
445 446 447 |
# File 'lib/steep/errors.rb', line 445 def relation @relation end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
444 445 446 |
# File 'lib/steep/errors.rb', line 444 def result @result end |
#var_name ⇒ Object (readonly)
Returns the value of attribute var_name.
443 444 445 |
# File 'lib/steep/errors.rb', line 443 def var_name @var_name end |
Instance Method Details
#to_s ⇒ Object
456 457 458 |
# File 'lib/steep/errors.rb', line 456 def to_s "#{location_to_str}: IncompatibleAnnotation: var_name=#{var_name}, #{relation}" end |