https://github.com/tcd/coolkit
🧰 Useful ruby code with no dependencies
https://github.com/tcd/coolkit
Last synced: 3 days ago
JSON representation
🧰 Useful ruby code with no dependencies
- Host: GitHub
- URL: https://github.com/tcd/coolkit
- Owner: tcd
- License: mit
- Created: 2019-11-17T18:30:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-26T15:28:43.000Z (over 4 years ago)
- Last Synced: 2025-02-03T20:44:58.123Z (over 1 year ago)
- Language: Ruby
- Size: 132 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Coolkit
[](https://rubygems.org/gems/coolkit)
[](https://travis-ci.org/tcd/coolkit)
[](https://coveralls.io/github/tcd/coolkit?branch=master)
[](https://github.com/tcd/coolkit/blob/master/LICENSE.txt)
[](https://www.rubydoc.info/gems/coolkit)
Useful ruby code with no dependencies.
## Installation
Add `gem "coolkit"` to your application's Gemfile and then run `bundle`.
Or install it yourself as `gem install coolkit`
## Usage
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.
```ruby
require "coolkit"
hash = {"key" => [{"k" => :v}, {"k" => 5}]}
Coolkit.symbolize_keys(hash) #=> {:key => [{:k => :v}, {:k => 5}]}
```
### Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/tcd/coolkit.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).