{"id":16073511,"url":"https://github.com/chaabaneanas/my_enumerable","last_synced_at":"2025-06-18T15:37:54.169Z","repository":{"id":62231266,"uuid":"558996758","full_name":"ChaabaneAnas/My_Enumerable","owner":"ChaabaneAnas","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-29T08:07:48.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"dev","last_synced_at":"2025-02-25T05:16:43.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChaabaneAnas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-28T19:27:56.000Z","updated_at":"2023-02-05T22:27:07.000Z","dependencies_parsed_at":"2022-10-28T21:45:41.245Z","dependency_job_id":null,"html_url":"https://github.com/ChaabaneAnas/My_Enumerable","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"microverseinc/readme-template","purl":"pkg:github/ChaabaneAnas/My_Enumerable","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaabaneAnas%2FMy_Enumerable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaabaneAnas%2FMy_Enumerable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaabaneAnas%2FMy_Enumerable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaabaneAnas%2FMy_Enumerable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChaabaneAnas","download_url":"https://codeload.github.com/ChaabaneAnas/My_Enumerable/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChaabaneAnas%2FMy_Enumerable/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260581242,"owners_count":23031564,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T08:20:59.913Z","updated_at":"2025-06-18T15:37:49.157Z","avatar_url":"https://github.com/ChaabaneAnas.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](https://img.shields.io/badge/Microverse-blueviolet)\n\n### Project requirements\n\n- Check offical documentation about the following 3 methods in [Enumerable](https://ruby-doc.org/core-3.0.0/Enumerable.html). Make sure that you understand what they are doing.\n  - [description of #all? method](https://ruby-doc.org/core-3.0.0/Enumerable.html#method-i-all-3F)\n  - [description of #any? method](https://ruby-doc.org/core-3.0.0/Enumerable.html#method-i-any-3F)\n  - [description of #filter method](https://ruby-doc.org/core-3.0.0/Enumerable.html#method-i-filter)\n- Create a class `MyList` that has an instance variable `@list`.\n- In `MyList` implement a method `#each` that yields successive members of `@list` and uses the `MyEnumerable` module.\n- Create a module `MyEnumerable` that implements the following methods (they should have the same funcionality as methods in [Enumerable](https://ruby-doc.org/core-3.0.0/Enumerable.html)):\n  - `#all?`\n  - `#any?`\n  - `#filter`\n- Each class and module should has a separate .rb file.\n- Verify your solution:\n```ruby\n# Create our list\nirb\u003e list = MyList.new(1, 2, 3, 4)\n=\u003e #\u003cMyList: @list=[1, 2, 3, 4]\u003e\n# Test #all?\nirb\u003e list.all? {|e| e \u003c 5}\n=\u003e true\nirb\u003e list.all? {|e| e \u003e 5}\n=\u003e false\n# Test #any?\nirb\u003e list.any? {|e| e == 2}\n=\u003e true\nirb\u003e list.any? {|e| e == 5}\n=\u003e false\n# Test #filter\nirb\u003e list.filter {|e| e.even?}\n=\u003e [2, 4]\n```\n\n## Prerequisites\n\n- Ruby \n\n### Setup\n- Clone this project using the git command below\n\n` git clone https://github.com/ChaabaneAnas/My_Enumerable`\n\n### Usage\n- To run use the command \n\n`ruby index.rb' `\n\n\n## Authors\n\n\n👤 **Author1**\n\n- GitHub: [@t-bello7](https://github.com/t-bello7)\n- Twitter: [@__tbello](https://twitter.com/__tbello)\n- LinkedIn: [Bello Oluwatomisin](https://linkedin.com/in/tbello7)\n\n👤 **Author2**\n\n👤 **Anas Chaabane**\n\n- GitHub: [@ChaabaneAnas](https://github.com/ChaabaneAnas)\n- Twitter: [@AnasChabaane](https://twitter.com/AnasChabaane)\n- LinkedIn: [Anas Chaabane](https://www.linkedin.com/in/chaabaneanas/)\n\n## 🤝 Contributing\n\nContributions, issues, and feature requests are welcome!\n\nFeel free to check the [issues page](../../issues/).\n\n## Show your support\n\nGive a ⭐️ if you like this project!\n\n## Acknowledgments\n\n- Hat tip to anyone whose code was used\n- Inspiration\n- etc\n\n## 📝 License\n\nThis project is [MIT](./LICENSE) licensed.\n\n_NOTE: we recommend using the [MIT license](https://choosealicense.com/licenses/mit/) - you can set it up quickly by [using templates available on GitHub](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). You can also use [any other license](https://choosealicense.com/licenses/) if you wish._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaabaneanas%2Fmy_enumerable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchaabaneanas%2Fmy_enumerable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchaabaneanas%2Fmy_enumerable/lists"}