Class: Steep::Diagnostic::Signature::InlineDiagnostic
- Defined in:
- lib/steep/diagnostic/signature.rb
Instance Attribute Summary collapse
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(diagnostic) ⇒ InlineDiagnostic
constructor
A new instance of InlineDiagnostic.
Methods inherited from Base
#detail_lines, #diagnostic_code, #path
Methods included from Helper
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
#diagnostic ⇒ Object (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_line ⇒ Object
526 527 528 |
# File 'lib/steep/diagnostic/signature.rb', line 526 def header_line diagnostic. end |