Top Level Namespace
Defined Under Namespace
Modules: Jekyll
Instance Method Summary collapse
Instance Method Details
#sanitizeName(name) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/jekyll-tabs.rb', line 4 def sanitizeName(name) return name .strip # remove leading and trailing whitespace .downcase # lowercase .gsub(/[^0-9a-z]/, '-') # replace all non alphabjetical or non numerical characetrs by a dash end |