Class: Steep::Errors::UnknownConstantAssigned

Inherits:
Base
  • Object
show all
Defined in:
lib/steep/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#node

Instance Method Summary collapse

Methods inherited from Base

#location_to_str, #print_to

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

#typeObject (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_sObject



404
405
406
# File 'lib/steep/errors.rb', line 404

def to_s
  "#{location_to_str}: UnknownConstantAssigned: type=#{type}"
end