In this project you will learn how to use a module inside your class. For this you will create a class MyList and a module MyEnumerable. Your module MyEnumerable will implement a subset of the functionality of Enumerable.
The Enumerable mixin provides collection classes with several traversal and searching methods, and with the ability to sort. The class must provide a method each, which yields successive members of the collection. If #max, min, or sort is used, the objects in the collection must also implement a meaningful <=> operator, as these methods rely on an ordering between members of the collection.
- Ruby
step1 cloning the project:
git clone https://github.com/ZahraArshia/Enumerable.git
step2 You can use IRB for running the project or any compiler:
irb
👤 Okoroji Victor aka Vickymarz
-
GitHub: @githubhandle
-
LinkedIn: LinkedIn
👤 Zahra Arshia
-
GitHub: @githubhandle
-
LinkedIn: LinkedIn
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Microverse
- Coding partner
This project is MIT licensed.