/enumerables

Advanced Building Blocks - Enumerables!

Primary LanguageRuby

Advanced Blocks - Enumerable Module!

In this project, I rewrote some of the most commonly used Ruby Enumerable methods. It was a great exercise to understand how the ruby methods work, how to modify a Module, practice how to use yields, and procs along with all the previously acquired knowledge.

screenshot

These new personalized methods return the same variable type and output that the original methods of the Module. To achieve that, I had to write some complex coding that overpassed the allowed complexity by Rubocop, so I had to override the CyclomaticComplexity cop.

Testing cases

For the new branch, we added some RSpec validations. We included some test cases to validate our newly created methods with the original Enumerable methods.

Live version

Live Version

Built With

  • Ruby
  • VSCode

Getting Started

To get a local copy of the repository please run the following commands on your terminal:

$ cd <folder>
$ git clone git@github.com:lmaldonadoch/enumerables.git

Author

👤 Luis Angel Maldonado

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Project inspired by Microverse Program.
  • Project originally taken from The Odin Project