Sha256: 633fe1ebaef7847aacab5151833ccdc63482803f9df69de3db8ef236817aabad
Contents?: true
Size: 285 Bytes
Versions: 4
Compression:
Stored size: 285 Bytes
Contents
module Saorin module Utility class << self def symbolized_keys(hash) hash = hash.dup hash.keys.each do |key| if key.is_a?(::String) hash[key.to_sym] = hash.delete(key) end end hash end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
saorin-0.3.2 | lib/saorin/utility.rb |
saorin-0.3.1 | lib/saorin/utility.rb |
saorin-0.3.0 | lib/saorin/utility.rb |
saorin-0.2.0 | lib/saorin/utility.rb |