• Stars
    star
    204
  • Rank 192,063 (Top 4 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 10 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Small, focused, awesome methods added to core Ruby classes. Home of the endlessly useful nil_chain.

Finishing Moves

Gem Version Build Status Mentioned in Awesome Ruby

Ruby includes a huge amount of default awesomeness that tackles most common development challenges. But every now and then, you find yourself performing contortions to achieve results that, honestly, should feel more natural given the language's design elegance. Finishing Moves is a collection of methods designed to assist in those "why is this awkward?" scenarios.

In the right situation, they kick serious cyclomatic butt.

Installation

Gemfile

gem 'finishing_moves'

Command line

gem install 'finishing_moves'

Documentation

Not sure if this gem is for you? Check out the methods marked with a πŸ’₯ first.

Ruby Version

Tested against all supported versions of official RVM, currently 2.7.6 and above.

Development approach

  • Never override default Ruby behavior, only add functionality.
  • Follow the Unix philosophy of "Do one job really well."
  • Minimize assumptions, e.g. avoid formatting output, mutating values, and conditional logic flows.
  • Play nice with major Ruby players like Rake, Rails, and Sinatra.
  • Test all the things.

Bug Reports

Drop us a line in the issues section.

Be sure to include sample code that reproduces the problem.

Add your own finisher!

  1. Fork this repo
  2. Write your tests
  3. Add your finisher
  4. Repeat steps 2 and 3 until you see a brilliant luster
  5. Submit a pull request