In this project, I will implement my own version of Ruby’s enumerable methods.
I wrote my own versions of some of the most iconic (and used) Ruby enumerable methods. Implemented RSpec tests for all.
To prove that there's no magic to the original Ruby enumerable methods, I rebuilt #each, #each_with_index, #select, #all?, #any?, #none?, #count, #map and #inject. Then I wrote RSpec tests for all.
To get a local copy up and running follow these simple example steps:
$ ruby enumerables.rb
$ gem install rspec
$ rspec spec/enumerable_spec.rb
Miguel Tapia Escalera (Meltrust)
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a if you like this project!
This project is MIT licensed.