Method: Primer::Classify::Utilities.classname
- Defined in:
- lib/primer/classify/utilities.rb
.classname(key, val, breakpoint = "") ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/primer/classify/utilities.rb', line 42 def classname(key, val, breakpoint = "") # For cases when `argument: false` is passed in, treat like we would nil return nil unless val if (valid = validate(key, val, breakpoint)) valid else # Get selector UTILITIES[key][val][BREAKPOINT_INDEX_CACHE[breakpoint]] end end |