This is a practical project to create a ruby enumerable methods that can be called on arrays and hashes
The objective of this exercise is to create a ruby my_enumerable methods, that can be called on arrays and hashes using Ruby. the enumerables methods that I have created are:
- my_each
- my_each_with_index
- my_select
- my_all?
- my_none?
- my_count
- my_any?
- my_inject; with its testing method called multiply_els that multiplies all the elements of the array and returns the result.
- my_map; it accepts either a proc or block.
I have also created a tests.rb script for testing my_enumerable methods
- Ruby
- Rubocop (linter)
- git clone https://github.com/oloomoses/my_enumerable_methods.git
- cd my_enumerable_methods
- git checkout feature
- ruby tests.rb
👨 Oloo Moses
- Twitter: https://twitter.com/olooine
- Github: https://github.com/oloomoses
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Support this project with a ⭐️ and let us now if you would like to become a contributor!