Sha256: 2287469ee8bfee9d0f1ff9cd901cf3e78c953fecea0b2c3767bb8c12a209a07a
Contents?: true
Size: 344 Bytes
Versions: 1
Compression:
Stored size: 344 Bytes
Contents
# Assuming there will be more than one method here one day, # this file is called csses_helpers.rb. # You know how CSS selectors use the octothorpe for IDs # and the dot for classes? This translates that. def css_sym_for_attribute(attribute) case attribute when 'id' '#' when 'class' '.' else raise ArgumentError end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csses-1.0.0 | lib/csses_helpers.rb |