Responsibly extends Ruby's Array with simple and predictable utilities.

Gem Version Build Status

Current features

  • drop_last
  • drop_last!
  • each_with_index_and_size
  • each_after
  • map_key

Installing gem

Add to your Gemfile:

gem 'array-tweaks', '~> 1.0'

Running tests

Install bundler:

gem install bundler

Install dependencies:

cd array-tweaks && bundle

Run tests:

cd array-tweaks && bundle exec rake test