Sha256: c9046a0a3c708d46a4a39fc5ea30917918fa2cb560f8c22501dac15a36ff8de9

Contents?: true

Size: 170 Bytes

Versions: 20

Compression:

Stored size: 170 Bytes

Contents

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

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
head_music-0.17.0 lib/head_music/utilities/hash_key.rb
head_music-0.16.2 lib/head_music/utilities/hash_key.rb
head_music-0.16.0 lib/head_music/utilities/hash_key.rb
head_music-0.14.8 lib/head_music/utilities/hash_key.rb
head_music-0.14.7 lib/head_music/utilities/hash_key.rb
head_music-0.14.5 lib/head_music/utilities/hash_key.rb
head_music-0.14.4 lib/head_music/utilities/hash_key.rb
head_music-0.14.2 lib/head_music/utilities/hash_key.rb
head_music-0.14.1 lib/head_music/utilities/hash_key.rb
head_music-0.13.2 lib/head_music/utilities/hash_key.rb
head_music-0.11.9 lib/head_music/utilities/hash_key.rb
head_music-0.11.8 lib/head_music/utilities/hash_key.rb
head_music-0.11.7 lib/head_music/utilities/hash_key.rb
head_music-0.11.6 lib/head_music/utilities/hash_key.rb
head_music-0.11.5 lib/head_music/utilities/hash_key.rb
head_music-0.11.4 lib/head_music/utilities/hash_key.rb
head_music-0.11.3 lib/head_music/utilities/hash_key.rb
head_music-0.11.2 lib/head_music/utilities/hash_key.rb
head_music-0.11.1 lib/head_music/utilities/hash_key.rb
head_music-0.10.0 lib/head_music/utilities/hash_key.rb