In this project, we implemented our own version of Ruby’s enumerable methods.
Based on the documentation we created our own version to emulate these methods:
- #my_each VS #each
- #my_each_with_index VS #each_with_index
- #my_select VS #select
- #my_all? VS #all?
- #my_any? VS #any?
- #my_none? VS #none?
- #my_count vs #count
- #my_map VS #map
- #my_inject VS #inject
- #multiply_els VS #inject that multiplies all the elements of the array together
- Ruby
To get a local copy of the repository please run the following commands on your terminal:
$ cd <folder>
$ git clone https://github.com/DanSam5K/project-2-enumerable-methods.git
Testing
To test the code, run ruby test_case.rb file from your terminal.
$ ruby test_case.rb
👤 David Alvarez
- GitHub: @petumazo
- Twitter: @petudeveloper
- LinkedIn: LinkedIn
👤 Daniel Samuel
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Project implemented based on the steps from The Odin Project Project 2: Enumerable Methods
- Project inspired by Microverse Program
This project is MIT licensed.