A Ruby program that implements custom versions of the all?
, any?
, and filter
methods, mimicking the functionality of the Enumerable module. This program demonstrates how to create and use these essential Enumerable methods from scratch.
- Custom
all?
Method: Check if all elements in a collection meet a specified condition. - Custom
any?
Method: Determine if any elements in a collection meet a specified condition. - Custom
filter
Method: Select elements from a collection that meet a specified condition.
- Ruby
have a working git on your local machine.
To get a working local copy up and running follow these simple steps
- open terminal
- clone this project with the command:
git clone https://github.com/PinkMoon25/ruby-enumerable.git
For anyone that whats to learn ruby
👤 Tushar Singh
- GitHub: @PinkMoon25
- Twitter: @twitterhandle
- LinkedIn: LinkedIn
👤 Ernest Anyewe Adonu
- GitHub: @principlebrothers
- Twitter: @adonu_ernest
- LinkedIn: Ernest Anyewe Adonu
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
This project is MIT licensed.