This is the implementation of Ruby Methods, we build copies of 9 different types of Ruby Enumerable methods using Ruby and we tested all of them using RSpec, the objective of this is to showcase our abilities and capabilities of working with these methods and other Ruby methods as well and the abilities to create our own custom enumerable methods if there is a need for that.
each
method.each_with_index
method.select
method.all?
method.any?
method.none?
method.count
method.map
method.inject
method.multiply_els
method.For testing this Enumerable methods, you need to install rspec
using gem
. You can find more about gem
in the Ruby documentation.
cd ruby-1
rspec
: rspec --tty spec
Oever Gonzlez
Iyunda Ismael Antonio
Contributions, issues, and feature requests are welcome!
Give a if you like this project!
This project is MIT licensed.