In this project you will learn how to use a module inside your class. For this the class MyList and a module MyEnumerable. The module MyEnumerable implements a subset of the functionality of Enumerable.
1.- Open the terminal window and clone the repository using this command:
git clone https://github.com/HectorTorresE/Ruby_Enumerable.git
2.- Inside the enumerable.rb file there is a module MyEnumerable that will implement a subset of the functionality of Enumerable.
3.- Inside the my_list.rb file, there is a class MyList that includes Enumerable: is initialize with an array and has a method to outputs each elements of the array.
👤 Hector Torres
- GitHub: @HectorTorres
- Twitter: @HectorT
- LinkedIn: @Hectorjte
👤 Fernando Salas
- GitHub: @LuisSalas94
- LinkedIn: Fernando Salas
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to anyone whose code was used
- Inspiration
- etc
This project is MIT licensed.