In this project, I rewrote some of the most commonly used Ruby Enumerable methods. It was a great exercise to understand how the ruby methods work, how to modify a Module, practice how to use yields, and procs along with all the previously acquired knowledge.
These new personalized methods return the same variable type and output that the original methods of the Module. To achieve that, I had to write some complex coding that overpassed the allowed complexity by Rubocop, so I had to override the CyclomaticComplexity cop.
For the new branch, we added some RSpec validations. We included some test cases to validate our newly created methods with the original Enumerable methods.
- Ruby
- VSCode
To get a local copy of the repository please run the following commands on your terminal:
$ cd <folder>
$ git clone git@github.com:lmaldonadoch/enumerables.git
👤 Luis Angel Maldonado
- Github: @lmaldonadoch
- Twitter: @LuisAngelMCh
- Linkedin: linkedin
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Project inspired by Microverse Program.
- Project originally taken from The Odin Project