Enumerable-Ruby In this project we learned how to use a module inside the class. For this we created a class MyList and a module MyEnumerable. The module MyEnumerable implemented a subset of the functionality of Enumerable.
Client
Server
- N/A
Database
- N/A
- N/A
In order to run this project you need:
- Installed Git.
- Installed Ruby
- Create a local directory that you want to clone the repository.
- Open the command prompt in the created directory.
- On the terminal run this command git clone https://github.com/Salwa99/Enumerable-Ruby.git
Clone this repository to your desired folder:
git https://github.com/Salwa99/Enumerable-Ruby.git
cd Enumerable-Ruby
irb
list.all? {|e| e < 5}
list.all? {|e| e > 5}
list.any? {|e| e == 2}
list.any? {|e| e == 5}
list.filter? (|e| e.even?)
- GitHub: @Salwa99
- Twitter: @SalwaBallouti
- LinkedIn: LinkedIn
- Add more advanced Ruby functions.
- Build wonderful UI.
Contributions, issues, and feature requests are welcome!
If you liked this project, give it a ⭐️ and kindly send to me an e-mail expressing it, it would make my day and fuel my motivation.
I would like to thank Microverse team for this journey.
This project is MIT licensed.