crystal_on_steroids
Crystal on Steroids
A group of methods to make Crystal more programmer friendly. Methods taken from Rails ActiveSupport, Powerpack 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
AliasMethod
- alias_method
Object
- present?
- presence
- to_query
- to_param
- in?
- presence_in
Array
- second
- third
- fourth
- fifth
- rest
- not_last
- split
- from
- to
- slice
Hash
- compact
- compact!
Enumerable
- blank?
- many?
- pluck
- excludes?
- without
- avg (average)
- exactly?
- frecuencies
Time
- prev_day
- next_day
- yesterday
- tomorrow
- today?
String
- remove
- truncate
- truncate_words
- squish
Int
- multiple_of?
- ordinal
- ordinalize
Number
- bytes
- kilobytes
- megabytes
- gigabytes
- terabytes
- petabytes
- exabytes
Regex
- match?
Range
- overlaps?
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
Repository
crystal_on_steroids
Owner
Statistic
- 49
- 3
- 2
- 0
- 0
- almost 5 years ago
- February 19, 2016
License
MIT License
Links
Synced at
Sun, 24 Nov 2024 07:50:43 GMT
Languages