Skip to content

This project is based on the Odin Project of Enumerable methods. We created our own methods on to the existing Enumerable module without using original methods and with yield statement or #call method.

License

Notifications You must be signed in to change notification settings

yoko-vicky/enumerables

Repository files navigation

Enumerable Methods

About the Project

This project is based on the Odin Project of Enumerable methods. We created our own methods on to the existing Enumerable module without using original methods and with yield statement or #call method as below:

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

#multiply_els is created for testing #my_inject, which multiplies all the elements of the array together by using #my_inject.

A list of commonly used resources that I find helpful is listed in the acknowledgments.

Table of Contents

Built With

Live Demo

Live Demo Link

Getting Started

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

  1. On the project GitHub page, navigate to the main page of the repository.
  2. Under the repository name, locate and click on a green button named Code.
  3. Copy the project URL as displayed.
  4. If you're running the Windows Operating System, open your command prompt. On Linux, Open your terminal.
  5. Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.
  6. Type git clone, and then paste the URL you copied in Step 3.
    e.g. $ git clone https://github.com/yourUsername/yourProjectName
  7. Press Enter. Your local copy will be created.
  8. Type pry, and load the file like below: load "enumerables.rb"
  9. Call methods on the pry and try it.

Authors

👤 Divyesh Patel

👤 Yoko Saka

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Show your support

Give a ⭐️ if you like this project!

License

This project is MIT licensed.

Acknowledgements

About

This project is based on the Odin Project of Enumerable methods. We created our own methods on to the existing Enumerable module without using original methods and with yield statement or #call method.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages