class RuboCop::AST::ProcessedSource

def line_with_comment?(line)

Returns:
  • (Boolean) - if the given line number has a comment.
def line_with_comment?(line)
  comment_index.include?(line)
end