An open API service indexing awesome lists of open source software.

https://github.com/tsheporamantso/enumerable

Enumerable is an app that takes a defined list of characters, strings, numbers or arrays and performs some enumerable functions on them. The methods are defined in a module and used within a class.
https://github.com/tsheporamantso/enumerable

ruby ruby-gem

Last synced: 7 months ago
JSON representation

Enumerable is an app that takes a defined list of characters, strings, numbers or arrays and performs some enumerable functions on them. The methods are defined in a module and used within a class.

Awesome Lists containing this project

README

          

Enumerable

# 📗 Table of Contents

- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [🚀 Live Demo](#live-demo)
- [💻 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)

# 📖 Enumerable

**Enumerable** is an app that takes a defined list of characters, strings, numbers or arrays and performs some enumerable functions on them. The methods are defined in a module and used within a class.

## 🛠 Built With

### Tech Stack

Server

### Key Features

- **All Enumerator**
- **Any Enumerator**
- **Filter Enumerator**

(back to top)

## 🚀 Live Demo

- Not live yet

(back to top)

## 💻 Getting Started

To get a local copy up and running, follow these steps.

### Prerequisites
In order to run this project you need:

- Install ruby using [link](https://www.ruby-lang.org/en/documentation/installation/#apt)

### Setup

Clone this repository to your desired folder:

```sh
mkdir folder_name
cd folder_name
git clone git@github.com:tsheporamantso/Enumerable.git
```
-

### Install

Install this project with:

```sh
bundle install
```
-

### Usage

To run the project, execute the following command, start the interactive ruby on the terminal:
```sh
irb -r name_of_file
```
-

### Run tests

To run tests do follow the code below on irb in the terminal:

```sh
# Create our list
list = MyList.new(1, 2, 3, 4)

# Test #all?
puts list.all? { |e| e < 5 } #=> true
puts list.all? { |e| e > 5 } #=> false

# Test #any?
puts list.any? { |e| e == 2 } #=> true
puts list.any? { |e| e == 5 } #=> false

# Test #filter
puts list.filter { |e| e.even? } #=> [2, 4]
```

### Deployment

Not deployed

(back to top)

## 👥 Authors

👤 **Gladwin Tshepo Ramantso**

- GitHub: [@tsheporamantso](https://github.com/tsheporamantso)
- Twitter: [@ramgt001](https://twitter.com/ramgt001)
- LinkedIn: [Tshepo Gladwin Ramantso](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/)

👤 **Benson Njuguna Kamau**

- GitHub: [@bennyjoez](https://github.com/bennyjoez)
- Twitter: [@bennyjoezz](https://twitter.com/bennyjoezz)
- LinkedIn: [Benson Njuguna Kamau](https://www.linkedin.com/in/bennyjoez/)

(back to top)

## 🔭 Future Features

- [ ] **Webpage**

(back to top)

## 🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/tsheporamantso/Enumerable/issues).

(back to top)

## ⭐️ Show your support

If you like this project please give a star on [github](https://github.com/tsheporamantso/Enumerable) & follow us on [twitter](https://twitter.com/ramgt001) and also connect on [Linkedin](https://www.linkedin.com/in/tshepo-ramantso-b6a35433/).

(back to top)

## 🙏 Acknowledgments

I would like to thank:

- [ ] **Microverse and all the staff**
- [ ] **Microverse Communinity**
- [ ] **Thanks to my coding Partners**
- [ ] **Thanks to my Morning-Session-Group and Standup-Team Partners and**
- [ ] **Thanks to Code Reviewers**

(back to top)

## 📝 License

This project is [MIT](https://github.com/tsheporamantso/Enumerable/blob/34aad113098b28b8a22b1b4d70cd6403c4df55d1/LICENSE) licensed.

(back to top)