https://github.com/werner/crystal_on_steroids
A group of methods to make Crystal more programmer friendly (extracted from Rails ActiveSupport, Powerpack and others)
https://github.com/werner/crystal_on_steroids
activesupport crystal extensions friendly happiness programmer-friendly web
Last synced: about 1 year ago
JSON representation
A group of methods to make Crystal more programmer friendly (extracted from Rails ActiveSupport, Powerpack and others)
- Host: GitHub
- URL: https://github.com/werner/crystal_on_steroids
- Owner: werner
- License: mit
- Created: 2016-02-19T19:05:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T21:00:17.000Z (over 6 years ago)
- Last Synced: 2025-03-23T12:32:52.055Z (about 1 year ago)
- Topics: activesupport, crystal, extensions, friendly, happiness, programmer-friendly, web
- Language: Crystal
- Homepage:
- Size: 257 KB
- Stars: 49
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crystal on Steroids [](https://travis-ci.org/werner/crystal_on_steroids)
A group of methods to make Crystal more programmer friendly. Methods taken from Rails ActiveSupport, Powerpack and others.
[Api Docs](https://werner.github.io/crystal_on_steroids/)
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
crystal_on_steroids:
github: werner/crystal_on_steroids
```
## Usage
```crystal
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](https://werner.github.io/crystal_on_steroids/)
## Contributing
1. Fork it ( https://github.com/werner/crystal_on_steroids/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [werner](https://github.com/werner) Werner Echezuría - creator, maintainer