Class: Steep::Diagnostic::Signature::UnknownTypeName

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

Instance Attribute Summary collapse

Attributes inherited from Base

#location

Instance Method Summary collapse

Methods inherited from Base

#detail_lines, #diagnostic_code, #path

Methods included from Helper

#error_name, #full_message

Constructor Details

#initialize(name:, location:) ⇒ UnknownTypeName

Returns a new instance of UnknownTypeName.



70
71
72
73
# File 'lib/steep/diagnostic/signature.rb', line 70

def initialize(name:, location:)
  super(location: location)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



68
69
70
# File 'lib/steep/diagnostic/signature.rb', line 68

def name
  @name
end

Instance Method Details

#header_lineObject



75
76
77
# File 'lib/steep/diagnostic/signature.rb', line 75

def header_line
  "Cannot find type `#{name}`"
end