Crystal on Steroids

A group of methods to make Crystal more programmer friendly. Methods taken from Rails ActiveSupport and others.
Installation
Add this to your application's shard.yml
:
dependencies:
crystal_on_steroids:
github: werner/crystal_on_steroids
Usage
require "crystal_on_steroids"
Methods
Object
- present?
- presence
- to_query
- to_param
- in?
- presence_in
- dig?
Array
- second
- third
- fourth
- fifth
- rest
- dig
- split
- from
- to
- in_groups
Hash
- compact
- compact!
- dig
Enumerable
- blank?
- many?
- pluck
- excludes?
- without
- avg (average)
Time
- prev_day
- next_day
- yesterday
- tomorrow
- today?
String
- remove
- truncate
- truncate_words
- squish
JSON::Any
- dig
YAML::Any
- dig
More details in docs
Contributing
- Fork it ( https://github.com/werner/crystal_on_steroids/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- werner Werner EchezurÃa - creator, maintainer