https://github.com/sevlamare/enumerables
Rebuild of a few iterators methods from Enumerable.
https://github.com/sevlamare/enumerables
ruby ruby-language unit-testing
Last synced: 6 months ago
JSON representation
Rebuild of a few iterators methods from Enumerable.
- Host: GitHub
- URL: https://github.com/sevlamare/enumerables
- Owner: SevlaMare
- Created: 2020-03-25T19:21:34.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T19:24:56.000Z (over 5 years ago)
- Last Synced: 2025-02-04T14:50:04.790Z (8 months ago)
- Topics: ruby, ruby-language, unit-testing
- Language: Ruby
- Homepage: https://repl.it/@ThiagoMiranda2/enumerables
- Size: 155 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Enumerable Methods
> Project to re-build a few methods of Ruby Language.
Methods based on Enumerable module and Array class.
As described on documentation here [Enumerable](https://ruby-doc.org/core-2.7.0/Enumerable.html)
and [Array](https://ruby-doc.org/core-2.4.1/Array.html#method-i-each)
[Inject](https://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/enum.c?view=markup&pathrev=54162)## Content
* [Requirements](#requirements)
* [Built With](#built-with)
* [Live Demo](#live-demo)
* [Quick Start](#quick-start)
* [Dependencies](#dependencies)
* [Contributing](#contributing)
* [Acknowledgments](#acknowledgments)
* [Author](#author)
* [License](#license)## Requirements
- .each (Only one from Array)
- .each_with_index
- .select (Filter like)
- .all?
- .any?
- .none?
- .count
- .map
- .inject (Reduce like)
Features
Re-make these methods and match with documentation expected behavior
- Create .multiply_els to test .inject
- Extends .map to accept procs
Additional features
Should multiply all the elements of array together
### Built With
- Ruby Language
- Rubocop (Linter) with Stickler (CI Tool)
- Git, Github and VScode
## Live Demo
[Run on Repl.it](https://repl.it/@ThiagoMiranda2/enumerables)
## Quick Start
To get a local copy use:
```js
git clone git@github.com:SevlaMare/enumerables.git
```
### Dependencies
Ruby 2.5.5
### Contributing
Contributions, issues and feature requests are welcome!
You can do it on [issues page](issues/).
## Acknowledgments
A special thanks for the code reviewers.
## Author
👤 **Thiago Miranda**
- Github: [@SevlaMare](https://github.com/SevlaMare)
- Twitter: [#SevlaMare)](https://twitter.com/SevlaMare)
- Linkedin: [SevlaMare)](https://www.linkedin.com/in/sevlamare)
### License
Creative Commons