In this project we will learn how to use a module inside our class. For this we will create a class MyList and a module MyEnumerable. Our module MyEnumerable will implement a subset of the functionality of Enumerable.
With the help of offical documentation about the following 3 methods in Enumerable. We have created these three methods: description of #all? method description of #any? method description of #filter method We have created a class MyList that has an instance variable @list. In MyList implement a method #each that yields successive members of @list and uses the MyEnumerable module. Create a module MyEnumerable that implements the following methods #all? #any? #filter Each class and module should has a separate .rb file.
Ruby
- Create your own Enumerable
- Create More Complex Enumerables
- Enumerable Generator
To get a local copy up and running, follow these steps.
Clone this repository to your desired folder:
git clone https://github.com/MudasirSherwani/Own-Enumerable-in-Ruby.git
cd Own-Enumerable-in-Ruby
This repository includes files with ruby code that can be used to decode any morse message:
👤 Mudasir Sherwani
- GitHub: @Mudasir Sherwani
- Twitter: @Mudasir Sherwani
- LinkedIn: Mudasir Sherwani
👤 Chimezie Asouzu
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project give me a star.
I would like to thanks Microverse to guide me to complete this project.
This project is MIT licensed.