Class: Primer::Classify::Validation
- Inherits:
-
Object
- Object
- Primer::Classify::Validation
- Defined in:
- lib/primer/classify/validation.rb
Overview
:nodoc:
Constant Summary collapse
- INVALID_CLASS_NAME_PREFIXES =
/text-|box-shadow-|box_shadow-/.freeze
Class Method Summary collapse
Class Method Details
.invalid?(class_name) ⇒ Boolean
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 |