/My-Enumerables

Enumerable modules are methods that get mixed into the Array and Hash classes (among others) and provides us with lots of handy iterator methods.

Primary LanguageRuby

Enumerable-Methods

Enumerable modules are methods that gets mixed into the Array and Hash classes (among others) and provides us with lots of handy iterator methods. In this project, we built our own enumerable methods while using the Git flow for the first time

  • my_each
  • my_each_with_index
  • my_select
  • my_all?
  • my_any?
  • my_none?
  • my_count
  • my_map
  • my_inject

Built With

  • Ruby

Live Code

Live Link

Getting Started

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

$ cd <Enumerables>
$ git clone https://github.com/Georjane/My-Enumerables.git

To run the code:

$ ruby myenum.rb

Testing

Install Rspec

$ gem install rspec

To test the code, run rspec from root of the folder using terminal as follows

rspec

Rspec is used for the test.

Author

👤 Witah Ngu Geojane

🤝 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 originally taken from The Odin Project
  • This project is part of Microverse Program