crystal_on_steroids

A group of methods to make Crystal more programmer friendly web activesupport extensions friendly happiness programmer-friendly
0.2.1 released

Crystal on Steroids Build Status docrystal.org

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

  • blank?
  • present?
  • presence
  • to_query
  • to_param
  • in?
  • presence_in

Array

  • second
  • third
  • fourth
  • fifth
  • rest

Hash

  • compact
  • compact!
  • dig

Enumerable

  • many?
  • pluck
  • excludes?
  • without
  • avg (average)

Time

  • prev_day
  • next_day
  • yesterday
  • tomorrow
  • today?

String

  • remove
  • truncate
  • truncate_words

More details in docs

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 Werner Echezuría - creator, maintainer
crystal_on_steroids:
  github: werner/crystal_on_steroids
  version: ~> 0.2.1
License MIT
Crystal none

Authors

Dependencies 1

  • mocks 0.5.0
    {'github' => 'waterlink/mocks.cr', 'version' => '0.5.0'}

Development Dependencies 0

Dependents 0

Last synced .
search fire star recently