https://github.com/nitbravoa92/enumerables
"Enumerables" is a command line program build in Ruby that seeks to show how you can make your own implementation of some methods of enumerable objects such as all?, any? and filter.
https://github.com/nitbravoa92/enumerables
ruby
Last synced: 10 days ago
JSON representation
"Enumerables" is a command line program build in Ruby that seeks to show how you can make your own implementation of some methods of enumerable objects such as all?, any? and filter.
- Host: GitHub
- URL: https://github.com/nitbravoa92/enumerables
- Owner: NitBravoA92
- License: mit
- Created: 2023-08-24T20:58:41.000Z (about 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-09-05T00:54:11.000Z (about 2 years ago)
- Last Synced: 2025-01-13T14:26:36.254Z (9 months ago)
- Topics: ruby
- Language: Ruby
- Homepage:
- Size: 6.84 KB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Enumerables | Ruby Project
# π Table of Contents
- [π Table of Contents](#-table-of-contents)
- [Enumerables ](#enumerables-)
- [π 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)
- [π₯ Authors ](#-authors-)
- [π Future Features ](#-future-features-)
- [π€ Contributing ](#-contributing-)
- [βοΈ Show your support ](#οΈ-show-your-support-)
- [π Acknowledgments ](#-acknowledgments-)
- [π License ](#-license-)---
**"Enumerables"** is a command line program build in Ruby that seeks to show how you can make your own implementation of some methods of enumerable objects such as all?, any? and filter.
---
Ruby
---
- Ruby
- Linters
- Rubocop
- Follow Microverse's list of best practices
---
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
A code editor (we recommend Visual Studio Code)
Git and a GitHub account
### Setup
Clone this repository to your desired folder by using this ποΈ command :
```
git clone https://github.com/NitBravoA92/enumerables.git
```
### Install
Go to the project directory:
```
cd enumerables
```
Before to run the program, verify that you have Ruby installed on your OS running the following command:
```
ruby -v
```
It should show you the version of ruby ββinstalled. If this does not happen and only an error message is displayed, then you should either verify your installation or install Ruby from scratch.
[Download and Install Ruby](https://www.ruby-lang.org/en/downloads/)
### Usage
Run the following command inside the project folder:
```
ruby run_app.rb
```
This will display the following output:
```
true
false
true
false
[2, 4]
```
You can modify the code of the file `run_app.rb` if you want to test another type of list or if you want to modify the code blocks in the functions all?, any? and filter to test with other conditionals.
### Run tests
- Not aplicable.
---
π€ **Nitcelis Bravo**
- GitHub: [Nitcelis Bravo](https://github.com/NitBravoA92)
- Twitter: [@softwareDevOne](https://twitter.com/softwareDevOne)
- LinkedIn: [Nitcelis Bravo Alcala](https://www.linkedin.com/in/nitcelis-bravo-alcala-b65340158)
---
Upcoming improvements:
- [ ] Add implementation of other methods like `duplicates?` and `reduce`
---
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/NitBravoA92/enumerables/issues).
---
If you like this project and know someone who might find it helpful, please share it.
Or give it a **star** βοΈ if you like this project!
---
I thank Microverse for this fantastic opportunity, and the code reviewers for their advice and time.
---
This project is [MIT](./LICENSE) licensed.
---