Skip to content

The aim of this project is to create custom Ruby enumerable methods that emulate Ruby's in-built enumerable methods such as each, each_with_index, select, map, etc.

Notifications You must be signed in to change notification settings

enkog/Ruby-Enumerable-Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerable-Methods

This project is a microverse collaborative project which is part of the requirements of the microverse technical curriculum in the Ruby section. This project consist of different ruby enumerable methods that emulate Ruby's in-built enumerable methods

Methods

The custom methods created are listed below:

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

    • Ruby
    • VS code

    Getting Started

    Run the code demonstrations below

    ruby enumerable.rb

    Prerequisites

    • Ruby

    Setup

    To run this project locally, please ensure you have Ruby installed on your machine, then clone this repository by running.

    git clone https://github.com/enkog/Enumerable-Methods

    After cloning run

    cd enumerable-methods

    Lastly run either of the commands listed in the getting started section above.

    Testing

    Install Rspec
    $ gem install rspec

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

    Rspec is used for the test.

    Authors

    👤 Ntwali Heritier

    👤 Oguadinma Nkiruka Ngozika

    🤝 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

    • Hat tip to anyone whose code was used
    • Inspiration
    • etc

    📝 License

    This project is MIT licensed.

    About

    The aim of this project is to create custom Ruby enumerable methods that emulate Ruby's in-built enumerable methods such as each, each_with_index, select, map, etc.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages