Module: Compass::Fontcustom::Util

Defined in:
lib/compass/fontcustom/util.rb

Class Method Summary collapse

Class Method Details

.sanitize_symbol(name) ⇒ Object



5
6
7
8
9
# File 'lib/compass/fontcustom/util.rb', line 5

def sanitize_symbol name
  name.to_s.gsub(/^"|"$/,    '') \
           .gsub(/[.+{};]+/, ' ') \
           .gsub(/[ ]+/,     '-')
end