/ruby_building_blocks

Recreating enumerable methods in Ruby

Primary LanguageRuby

Enumerable Methods in Ruby

Demonstrating how the Enum methods work in Ruby using basic keywords.

This is a Microverse project. It is developed as a requirement for Microverse Ruby course.

Enumerable module gets mixed into the Array and Hash classes (among others) and provide with lots of handy iteratoration methods. To prove that there's no magic to it. We rebuild the following methods :

  • each
  • each_with_index
  • select
  • all
  • any
  • none
  • count
  • map
  • inject

Built With

  • Ruby
  • VsCode
  • Repl.it

Getting Started

To get a local copy up and running follow these simple example steps: Prerequisites

Text Editor (VSCode is suggested.)
Ruby

Assignment Link

Assignment

Authors:

👤 Author1

👤 Author2

🤝 Contributing

Contributions, issues and feature requests are welcome! Start by:

  • Forking the project
  • Cloning the project to your local machine
  • cd into the project directory
  • Run git checkout -b your-branch-name
  • Make your contributions
  • Push your branch up to your forked repository
  • Open a Pull Request with a detailed description to the development branch of the original project for a review

Show your support

Give a ⭐ if you like this project!

📝 License

This project is MIT licensed.