Create Our own Enumerable

In this project we will learn how to use a module inside our class. For this we will create a class MyList and a module MyEnumerable. Our module MyEnumerable will implement a subset of the functionality of Enumerable.

📗 Table of Contents

📖 About the Project

Create your own Enumerable

With the help of offical documentation about the following 3 methods in Enumerable. We have created these three methods: description of #all? method description of #any? method description of #filter method We have created a class MyList that has an instance variable @list. In MyList implement a method #each that yields successive members of @list and uses the MyEnumerable module. Create a module MyEnumerable that implements the following methods #all? #any? #filter Each class and module should has a separate .rb file.

🛠 Built With

Tech Stack

Ruby

Key Features

  • Create your own Enumerable

(back to top)

🔭 Future Features

  • Create More Complex Enumerables
  • Enumerable Generator

(back to top)

💻 Getting Started

To get a local copy up and running, follow these steps.

Setup

Clone this repository to your desired folder:

  git clone https://github.com/MudasirSherwani/Own-Enumerable-in-Ruby.git
  cd Own-Enumerable-in-Ruby

This repository includes files with ruby code that can be used to decode any morse message:

(back to top)

👥 Authors

👤 Mudasir Sherwani

👤 Chimezie Asouzu

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project give me a star.

(back to top)

🙏 Acknowledgments

I would like to thanks Microverse to guide me to complete this project.

(back to top)

📝 License

This project is MIT licensed.

(back to top)