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

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.

Awesome Lists containing this project

README

          

# Enumerable Methods
> Project to re-build a few methods of Ruby Language.

![screenshot](./images/screenshot.png)


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


    Features


    Re-make these methods and match with documentation expected behavior


  • .each (Only one from Array)

  • .each_with_index

  • .select (Filter like)

  • .all?

  • .any?

  • .none?

  • .count

  • .map

  • .inject (Reduce like)


    Additional features


  • Create .multiply_els to test .inject

  • Should multiply all the elements of array together


  • Extends .map to accept procs

### 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