Sha256: 98ccbed9d0ad1f23cb9b44225a7de6e9d33c66e1cb55479a6daed465c7242b8a

Contents?: true

Size: 158 Bytes

Versions: 6

Compression:

Stored size: 158 Bytes

Contents

module HeadMusic
  module Utilities
    class HashKey
      def self.for(name)
        name.to_s.downcase.gsub(/\W+/, '_').to_sym
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
head_music-0.8.0 lib/head_music/utilities/hash_key.rb
head_music-0.7.0 lib/head_music/utilities/hash_key.rb
head_music-0.6.4 lib/head_music/utilities/hash_key.rb
head_music-0.6.3 lib/head_music/utilities/hash_key.rb
head_music-0.6.1 lib/head_music/utilities/hash_key.rb
head_music-0.6.0 lib/head_music/utilities/hash_key.rb