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.
977 978 979 980 |
# File 'lib/steep/diagnostic/ruby.rb', line 977 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.
975 976 977 |
# File 'lib/steep/diagnostic/ruby.rb', line 975 def comment @comment end |
Instance Method Details
#header_line ⇒ Object
982 983 984 |
# File 'lib/steep/diagnostic/ruby.rb', line 982 def header_line "Invalid ignore comment" end |