class RuboCop::DirectiveComment

def single_line?

Checks if this directive relates to single line
def single_line?
  !comment.text.start_with?(DIRECTIVE_COMMENT_REGEXP)
end