Class: Steep::Diagnostic::Ruby::InvalidIgnoreComment
- Defined in:
- lib/steep/diagnostic/ruby.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
Attributes inherited from Base
Instance Method Summary collapse
- #header_line ⇒ Object
-
#initialize(comment:) ⇒ InvalidIgnoreComment
constructor
A new instance of InvalidIgnoreComment.
Methods inherited from Base
#detail_lines, #diagnostic_code
Methods included from Helper
Constructor Details
#initialize(comment:) ⇒ InvalidIgnoreComment
Returns a new instance of InvalidIgnoreComment.
950 951 952 953 |
# File 'lib/steep/diagnostic/ruby.rb', line 950 def initialize(comment:) @comment = comment super(node: nil, location: comment.location.expression) end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
948 949 950 |
# File 'lib/steep/diagnostic/ruby.rb', line 948 def comment @comment end |
Instance Method Details
#header_line ⇒ Object
955 956 957 |
# File 'lib/steep/diagnostic/ruby.rb', line 955 def header_line "Invalid ignore comment" end |