module HeadMusic::Utilities::HashKey
Util for converting an object to a consistent hash key
Public Class Methods
for(identifier)
click to toggle source
# File lib/head_music/utilities/hash_key.rb, line 8 def self.for(identifier) I18n.transliterate(identifier.to_s).downcase.gsub(/\W+/, '_').to_sym end