This project is part of a series of projects to be completed by students of Microverse.
This project consists of recreating, from scratch, the Ruby Enumerable Module which is commonly used in day-to-day use. Due to the nature of the 'Enumerable Module' and it's oh-so frequent use - this proves to be an important concept for newcomers to Ruby.
The assignment can be found in the Odin Project's HTML and CSS course that can be found here.
- Create a new Enumerable Module.
- Create #my_each without using #each. Use #yield statements and ensure it does the same thing as #each.
- Create #my_each_with_index (still not using #each but rather #my_each now).
- Create #my_select.
- Create #my_all?
- Create #my_any?
- Create #my_none?
- Create #my_count
- Create #my_map.
- Create #my_inject.
- Test our shiny new #my_inject by creating a method called #multiply_els which (suprisingly), multiplies each array element together.
- Modify #my_map to take a proc instead of a block (only one at a time though).
- Ruby 2.3.7p456
- Rubocop
- Stickler-CI
- Git Flow
The project can be found at https://github.com/Rhelli/Enumerable-Methods
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
- Fork it (https://github.com/Rhelli/Enumerable-Methods/fork)
- Create your working branch (git checkout -b [choose-a-name])
- Commit your changes (git commit -am 'what this commit will fix/add/improve')
- Push to the branch (git push origin [chosen-name])
- Create a new Pull Request
Rory Hellier - GitHub
Give a โญ๏ธ if you like this project!