Class: Yattho::Classify::Validation

Inherits:
Object
  • Object
show all
Defined in:
lib/yattho/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

Returns:

  • (Boolean)


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

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