Class: Steep::Errors::UnknownConstantAssigned
- Defined in:
- lib/steep/errors.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(node:, type:) ⇒ UnknownConstantAssigned
constructor
A new instance of UnknownConstantAssigned.
- #to_s ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(node:, type:) ⇒ UnknownConstantAssigned
Returns a new instance of UnknownConstantAssigned.
390 391 392 393 |
# File 'lib/steep/errors.rb', line 390 def initialize(node:, type:) super(node: node) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
388 389 390 |
# File 'lib/steep/errors.rb', line 388 def type @type end |
Instance Method Details
#to_s ⇒ Object
395 396 397 |
# File 'lib/steep/errors.rb', line 395 def to_s "#{location_to_str}: UnknownConstantAssigned: type=#{type}" end |