class RuboCop::AST::ProcessedSource

def comments_before_line(line)

Deprecated:
  • Use `each_comment_in_lines`
def comments_before_line(line)
  each_comment_in_lines(0..line).to_a
end