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.
399 400 401 402 |
# File 'lib/steep/errors.rb', line 399 def initialize(node:, type:) super(node: node) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
397 398 399 |
# File 'lib/steep/errors.rb', line 397 def type @type end |
Instance Method Details
#to_s ⇒ Object
404 405 406 |
# File 'lib/steep/errors.rb', line 404 def to_s "#{location_to_str}: UnknownConstantAssigned: type=#{type}" end |