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

https://github.com/enionsouza/enumerables

Microverse Ruby Module: Advanced Building Blocks - Enumerables
https://github.com/enionsouza/enumerables

Last synced: 5 months ago
JSON representation

Microverse Ruby Module: Advanced Building Blocks - Enumerables

Awesome Lists containing this project

README

        

# Enumerable Methods Implementation

This project aims to replicate the functionality of the following `Enumerable` module methods:

- `#each` => `#my_each`
- `#each_with_index` => `#my_each_with_index`
- `#select` => `#my_select`
- `#all?` => `#my_all?`
- `#any?` => `#my_any?`
- `#none?` => `#my_none?`
- `#count` => `#my_count`
- `#map` => `#my_map`
- `#inject` => `#my_inject`

> This project was originally proposed by The Odin Project [GitHub Page](https://github.com/TheOdinProject/curriculum/blob/master/archive/old_lessons/ruby/basic_ruby/project_advanced_building_blocks.md#project-2-enumerable-methods)

## Built With

- Ruby 3.0.1
- Gems:
- Bundler
- RuboCop
- RSpec

## Getting Started

To get a local copy up and running follow these simple steps:

On GitHub bash:

- To clone the project to your machine, run `git clone https://github.com/enionsouza/enumerables.git`
- To enter the project folder, run `cd enumerables`.
- To see the source code, open `src/enumerable.rb` in an editor.
- To see the provided tests, open `spec/enumerable_spec.rb` in an editor.

### Prerequisites

Ruby and Bundler must be installed on your computer (versions 3.0.1 and 2.2.15, respectively)

### Run tests

- RuboCop is set up to run locally. Just run `rubocop` in the root of the repo.
- Additionally, run `bundle install` to install the project's dependencies.
- Finally, run `bundle exec rspec spec/enumerable_spec.rb` to perform the provided tests.

## Authors

πŸ‘€ **Ênio Neves de Souza**

- GitHub: [@enionsouza](https://github.com/enionsouza)
- Twitter: [@enionsouza](https://twitter.com/enionsouza)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/enio-neves-de-souza/)

πŸ‘€ **Lucas Ferrari Soto**

- GitHub: [@notlfish](https://github.com/notlfish)
- Twitter: [@LucasFerrariSo1](https://twitter.com/LucasFerrariSo1)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/lucas-mauricio-ferrari-soto-472a3515a/)

## 🀝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the [issues page](https://github.com/notlfish/ruby-bubble-sort/issues).

## Show your support

Give a ⭐️ if you like this project!

## Acknowledgments

This code is a project for [Microverse](https://www.microverse.org/), and its specification was taken from [The Odin Project](https://www.theodinproject.com/home)

## πŸ“ License

This project is [MIT](./LICENSE) licensed.