Class: Steep::Diagnostic::Signature::InlineDiagnostic

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(diagnostic) ⇒ InlineDiagnostic

Returns a new instance of InlineDiagnostic.



521
522
523
524
# File 'lib/steep/diagnostic/signature.rb', line 521

def initialize(diagnostic)
  super(location: diagnostic.location)
  @diagnostic = diagnostic
end

Instance Attribute Details

#diagnosticObject (readonly)

Returns the value of attribute diagnostic.



519
520
521
# File 'lib/steep/diagnostic/signature.rb', line 519

def diagnostic
  @diagnostic
end

Instance Method Details

#header_lineObject



526
527
528
# File 'lib/steep/diagnostic/signature.rb', line 526

def header_line
  diagnostic.message
end