In this project we will learn how to use a module inside 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.
- 📖 About the Project
- 💻 Getting Started
- 👥 Author
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
In this project we have implemented below three enumerable methods:
- #all?
- #any?
- #filter
Create 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 (they should have the same funcionality as methods in Enumerable):
- #all?
- #any?
- #filter Each class and module should has a separate .rb file.
Language
- [Implement Enumerable]
- [Add #all?]
- [Add #any?]
- [Add #filter]
- ... Coming soon
To get a local copy up and running, follow these steps.
In order to run this project you need:
- a browser
- Install Ruby on your commputer
Clone this repository to your desired folder:
cd your-desired-folder
git clone [email protected]:Leeoasis/enumerable.git
Install this project with:
- besides the previuous installations, no other installations are required
To run tests, run the following command:
- no tests are included in this project
You can deploy this project using:
- no deployment is required for this project
👤 William Sserubiri
- GitHub: @veronica365
- LinkedIn: LinkedIn
👤 Leslie Gudo
- GitHub: @githubhandle
- LinkedIn: LinkedIn
👤 BB Simon
- GitHub: @githubhandle
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
- queries to query the database
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, please give it a ⭐️!
I would like to thank, the Microverse program for giving us this opportunity to learn and build this project.
This project is MIT licensed.