https://github.com/omarmwarraich/enumerable
A Ruby module that contains a set of methods that are used to iterate through Arrays and Hashes.
https://github.com/omarmwarraich/enumerable
gemfile linters rubocop ruby
Last synced: over 1 year ago
JSON representation
A Ruby module that contains a set of methods that are used to iterate through Arrays and Hashes.
- Host: GitHub
- URL: https://github.com/omarmwarraich/enumerable
- Owner: OmarMWarraich
- Created: 2022-11-25T09:44:19.000Z (over 3 years ago)
- Default Branch: dev
- Last Pushed: 2024-08-02T00:30:42.000Z (almost 2 years ago)
- Last Synced: 2025-02-10T21:38:50.559Z (over 1 year ago)
- Topics: gemfile, linters, rubocop, ruby
- Language: Ruby
- Homepage:
- Size: 778 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Enumerable
Enumerable is a Ruby module that contains a set of methods that are used to iterate through Arrays and Hashes.
ruby
rubocop
Gemfile
- class MyList containing an instance variable @list.
- In MyList implement a method #each that yields successive members of @list and uses the MyEnumerable module.
- module MyEnumerable that implements the following methods:
- #all?
- #any?
- #filter
## 🚀 Coming Soon
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
```sh
sudo apt install rubocop
```
### Setup
Clone this repository to your desired folder:
```sh
cd
git clone git@github.com:OmarMWarraich/enumerable.git
```
### Install
Install this project with:
```sh
cd enumerable
gem install
```
### Usage
To run the project, execute the following command:
```sh
ruby main.rb
```
### Run tests
To run tests, run the following command:
```sh
rubocop
```
### Deployment
Coming Soon
👤 **OmarMWarraich**
- GitHub: [@OmarMWarraich](https://github.com/OmarMWarraich)
- Twitter: [@omarwarraich1](https://twitter.com/@omarwarraich1)
- LinkedIn: [LinkedIn](https://linkedin.com/in/o-va)
Coming Soon
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
> Write a message to encourage readers to support your project
If you like this project please give it a ⭐️!
I would like to thank Microverse for giving me the opportunity to learn and grow as a developer.
> Add at least 2 questions new developers would ask when they decide to use your project.
- **[Question_1]**
- [Answer_1]
- **[Question_2]**
- [Answer_2]
This project is [MIT](./LICENSE) licensed.