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
- Host: GitHub
- URL: https://github.com/enionsouza/enumerables
- Owner: enionsouza
- License: mit
- Created: 2021-04-21T16:21:00.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2021-05-11T16:17:58.000Z (about 4 years ago)
- Last Synced: 2023-03-10T16:57:39.426Z (about 2 years ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.