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

https://github.com/dansantander/enumerable-methods

This project consists in building ruby methods from scratch.
https://github.com/dansantander/enumerable-methods

Last synced: 3 months ago
JSON representation

This project consists in building ruby methods from scratch.

Awesome Lists containing this project

README

        

# ENUMERABLE METHODS

This project recreates the methods included in the Ruby's Enumerable module

Project: Advanced building blocks - Enumerables

[![Contributors][contributors-shield]][contributors-url]





Enumerables


Building the methods from the Enumerables module from Ruby


Explore the docs »




·
Report Bug
·
Request Feature

## Table of Contents

* [About the Project](#about-the-project)
* [Built With](#built-with)
* [License](#license)
* [Contact](#contact)

## About The Project

Built for Microverse following these requirements:
#### Requirement 1
- [x] Build a method #my_each that takes an array and performs an operation each element within

#### Requirement 2
- [x] Build a method #my_each_with_index that takes an array and performs an operation each element within
- [x] Can take a starting point as an argument

#### Requirement 3
- [x] Build a method #my_select that uses #my_each for the internal logic to return an array that complies with the given parameters

#### Requirement 4
- [x] Build a method #my_all? that uses #my_each to return a boolean value depending on the parameters provided

#### Requirement 5
- [x] Build a method #my_any? that uses #my_each to return a boolean value if any element complies with the paramaters provided

#### Requirement 6
- [x] Build a method #my_none? that uses #my_each to return a boolean value if no element complies with the parameter

#### Requirement 7
- [x] Build a method #my_count that uses #my_each to return an integer that represents the amount of instances of the array that comply with a given parameter

#### Requirement 8
- [x] Build a method #my_map that takes a block or a proc as arguments

#### Requirement 9
- [x] Build a method #my_inject that works through an array to perform a given block through the use of #my_each and that differentiates through the comparison of symbols in the parameters

#### Requirement 10
- [x] Build a method #multiply_els that uses #my_inject to multiply the elements in a given array

and following this lesson :
https://www.theodinproject.com/courses/ruby-programming/lessons/advanced-building-blocks

## Built With
* Ruby

## License

Distributed under the MIT License. See `LICENSE` for more information.

## Contact

Daniel Santander - [Github profile](https://github.com/dansantander)

Project Link: [https://github.com/dansantander/enumerable-methods](https://github.com/dansantander/enumerable-methods)

[contributors-shield]: https://img.shields.io/github/contributors/othneildrew/Best-README-Template.svg?style=flat-square
[contributors-url]: https://github.com/RodolfoRodriguezMata/enumerable-methods/contributors
[forks-shield]: https://img.shields.io/github/forks/othneildrew/Best-README-Template.svg?style=flat-square
[forks-url]: https://github.com/othneildrew/Best-README-Template/network/members
[stars-shield]: https://img.shields.io/github/stars/othneildrew/Best-README-Template.svg?style=flat-square
[stars-url]: https://github.com/othneildrew/Best-README-Template/stargazers
[issues-shield]: https://img.shields.io/github/issues/othneildrew/Best-README-Template.svg?style=flat-square
[issues-url]: https://github.com/othneildrew/Best-README-Template/issues
[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=flat-square
[license-url]: https://github.com/othneildrew/Best-README-Template/blob/master/LICENSE.txt
[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555
[linkedin-url]: https://linkedin.com/in/othneildrew
[product-screenshot]: images/screenshot.png