Method: RuboCop::DirectiveComment#start_with_marker?

Defined in:
lib/rubocop/directive_comment.rb

#start_with_marker?Boolean

Checks if the comment starts with ‘# rubocop:` marker

Returns:

  • (Boolean)


60
61
62
# File 'lib/rubocop/directive_comment.rb', line 60

def start_with_marker?
  comment.text.start_with?(DIRECTIVE_MARKER_REGEXP)
end