Method: Primer::Classify::Validation.invalid?

Defined in:
lib/primer/classify/validation.rb

.invalid?(class_name) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

12
13
14
# File 'lib/primer/classify/validation.rb', line 12

def invalid?(class_name)
  class_name.start_with?(INVALID_CLASS_NAME_PREFIXES) || Primer::Classify::Utilities.supported_selector?(class_name)
end