https://github.com/cobbyelsonfx/enumerable-project
This is a simple Ruby App for comparing enumerables by aplying the methods all, any, or filter to all elements in the list
https://github.com/cobbyelsonfx/enumerable-project
ruby
Last synced: 9 days ago
JSON representation
This is a simple Ruby App for comparing enumerables by aplying the methods all, any, or filter to all elements in the list
- Host: GitHub
- URL: https://github.com/cobbyelsonfx/enumerable-project
- Owner: CobbyElsonfx
- Created: 2023-10-20T16:39:20.000Z (over 1 year ago)
- Default Branch: development
- Last Pushed: 2023-11-22T17:22:28.000Z (over 1 year ago)
- Last Synced: 2025-02-18T01:30:20.569Z (3 months ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 554 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π Table of Contents
- [π About the Project](#about-project)
- [π Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [π» Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [Deployment](#deployment)
- [π₯ Authors](#authors)
- [π Future Features](#future-features)
- [π€ Contributing](#contributing)
- [βοΈ Show your support](#support)
- [π Acknowledgements](#acknowledgements)
- [β FAQ (OPTIONAL)](#faq)
- [π License](#license)# π [Custom_Enumerable_and_MyList]
> This repository comprises Ruby code that replicates three key Enumerable methods: #all?, #any?, and #filter. It includes a MyList class with an @list instance variable and a custom #each method that utilizes the MyEnumerable module. The project structure emphasizes modularity, with separate .rb files for classes and modules. The code has been rigorously tested and successfully mimics the expected behavior of the Enumerable methods.
**[Custom_Enumerable_and_MyLis]** presents a custom Ruby implementation of the Enumerable module, offering custom all?, any?, and filter methods within a modular and thoroughly tested codebase..
> Describe the tech stack and include only the relevant sections that apply to your project.
Ruby
## Key Features
- **Custom `all?` Method**: The custom `MyEnumerable` module provides an implementation of the `all?` method, enabling users to check if all elements in a collection meet a specified condition.
- **Custom `any?` Method**: Users can utilize the custom `any?` method to determine if at least one element in a collection fulfills a given condition.
- **Custom `filter` Method**: The `MyEnumerable` module includes a custom `filter` method, allowing users to filter elements based on specific conditions, similar to the native `Enumerable` functionality.
- **Modular Project Structure**: This project employs a modular structure with separate `.rb` files for classes and modules, enhancing code organization and clarity.
- **Tested Functionality**: The provided code has undergone thorough testing, demonstrating accurate replication of the `Enumerable` methods, ensuring reliability and correctness in implementation.
### Setup
Clone this repository to your desired folder by running the following commands in your terminal:
```sh
cd your-prefered-folder-name
git clone [email protected]:CobbyElsonfx/enumerable-project.git
```
### Install
Install this project with:
```sh
cd decode_morse_message
gem install bundler
bundle init
Add this line to your Gemfile
gem 'rubocop', '>= 1.0', '< 2.0'
Run bundle install
Create a new file .rubocop.yml and copy the file
provided in the linters instructions.
```
### Usage
To run the project, execute the following command:
```sh
Install Code-Runner extension on VS Code.
Install Ruby LSP extension on VS Code.
Run your program with Run Code option innside of VS Code (Play symbol).
The output of your code will be shown on the terminal (output tab).
```
### Run your code on IRB (Interactive Ruby Shell)
```
You can optionally run your code using IRB shell...
Open your IRB shell.
Copy your Ruby code to the IRB shell +
```
### Run linters tests
To run linters checking, run the following command:
```sh
Run rubocop on your VS Code terminal.
```
π€ **Md.Rafiduzzaman**
- GitHub: [@Rafiduzzaman](https://github.com/Rafiduzzaman)
- Twitter: [@rdzaman](https://twitter.com/rdzaman187468)
- LinkedIn: [@md-rafiduzzaman-nahin](https://www.linkedin.com/in/md-rafiduzzaman-nahin-7431ab1b4/)
π€**Jose Luis BerbesΓ Lopera**
- GitHub: [@githubhandle](https://github.com/jlberbesi)
- Twitter: [@twitterhandle](https://twitter.com/imberbesi)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/jlberbesi/)
π€ **MR. FRANCIS ANDOH**
- GitHub: [@CobbyElsonfx](https://github.com/CobbyElsonfx)
- LinkedIn: [@FrancisAndoh](https://www.linkedin.com/in/francis-andoh-133aa7245/)
> This project will have react and JS included for future features
- **[React]**
- **[JavaScript]**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/CobbyElsonfx/enumerable-project/issues).
> If you like this project you can recommend to your friend, family and colleagues who want to use my services
> All contributions, issues, and feature requests are welcome!
This project is [MIT](./MIT.md) licensed.