Class: Steep::Diagnostic::Ruby::UnsupportedSyntax
- 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(node:, message: nil) ⇒ UnsupportedSyntax
constructor
A new instance of UnsupportedSyntax.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(node:, message: nil) ⇒ UnsupportedSyntax
Returns a new instance of UnsupportedSyntax.
762 763 764 765 |
# File 'lib/steep/diagnostic/ruby.rb', line 762 def initialize(node:, message: nil) super(node: node) @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
760 761 762 |
# File 'lib/steep/diagnostic/ruby.rb', line 760 def @message end |
Instance Method Details
#header_line ⇒ Object
767 768 769 770 771 772 773 774 |
# File 'lib/steep/diagnostic/ruby.rb', line 767 def header_line if else node = node() or raise "Syntax `#{node.type}` is not supported in Steep" end end |