Class: Steep::Diagnostic::Ruby::SyntaxError
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(message:, location:) ⇒ SyntaxError
constructor
A new instance of SyntaxError.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(message:, location:) ⇒ SyntaxError
Returns a new instance of SyntaxError.
814 815 816 817 |
# File 'lib/steep/diagnostic/ruby.rb', line 814 def initialize(message: ,location:) super(node: nil, location: location) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
812 813 814 |
# File 'lib/steep/diagnostic/ruby.rb', line 812 def @message end |
Instance Method Details
#header_line ⇒ Object
819 820 821 |
# File 'lib/steep/diagnostic/ruby.rb', line 819 def header_line "SyntaxError: #{}" end |