Top Level Namespace
Defined Under Namespace
Classes: CSSes
Instance Method Summary collapse
-
#css_sym_for_attribute(attribute) ⇒ Object
You know how CSS selectors use the octothorpe for IDs and the dot for classes? This translates that.
Instance Method Details
#css_sym_for_attribute(attribute) ⇒ Object
You know how CSS selectors use the octothorpe for IDs and the dot for classes? This translates that.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/csses_helpers.rb', line 6 def css_sym_for_attribute(attribute) case attribute when 'id' '#' when 'class' '.' else raise ArgumentError end end |