Useful ruby code with no dependencies.
Add gem "coolkit"
to your application's Gemfile and then run bundle
.
Or install it yourself as gem install coolkit
If you want to use one of the core extensions, it needs to be required explicitly.
This allows users to make use of coolkit
's general functions without monkeypatching the standard library.
require "coolkit"
hash = {"key" => [{"k" => :v}, {"k" => 5}]}
Coolkit.symbolize_keys(hash) #=> {:key => [{:k => :v}, {:k => 5}]}
Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/coolkit.
The gem is available as open source under the terms of the MIT License.