This project is part of the Microverse Ruby curriculum!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
I recreated the Ruby enumerable methods using my own methods
This is the second project of the Microverse Ruby Section
This is also the second Assignment of the Odin project curriculum https://www.theodinproject.com/courses/ruby-programming/lessons/advanced-building-blocks
This project was built using these technologies.
- Ruby
- Rubocop
- VsCode
- Notepad++
- Rspec
If you want to use the code you need to have ruby installed in your computer and copy the main.rb file from this project in your project or open an irb
console and import it like this
require_relative main.rb
You can now use my Enumerable methods like the ruby Enumerable methods:
my_each
==each
my_each_with_index
==each_with_index
my_select
==select
my_count
==count
my_all
==all
my_any
==any
my_none
==none
my_map
==map
my_inject
==inject
You can see it working with some dummy test cases here
To run the test clone or download the project, open a terminal in the project directory and run the following:
rspec spec/test_enumerables
👤 María Eugenia Quemé
- Github: @euqueme
- Linkedin: María Eguenia Quemé Peña
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!