Skip to content

This is a demonstration of how someone can create ruby's core functions using the enumerable module. It is very flexible and if someone needs to write the functions they can to ease their workflow.

Notifications You must be signed in to change notification settings

uzairali19/enumerable_blocks

Repository files navigation

Advanced Building Blocks - Enumerables

The project is based on reproducing the enumerable methods to their usable states. The functions would have the prefix #my_ attached to them, eg: the #each function would be #my_each.

Functions to test :

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

Technologies Used

  • Ruby

Authors

👤 Uzair

Getting Started

To get a local copy of this project follow the steps below:

Setup Local

Use git clone https://github.com/uzairali19/enumerable_blocks.git to clone the branch directly to your machine

Setting up linter

  1. Run bundle install.
  2. Run rubocop.
  3. Fix linter errors.
  4. IMPORTANT NOTE: feel free to research auto-correct options for Rubocop if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code!
  • Navigate the project, you can open it with VScode or any other code editor of choice
  • run the code by opening up your terminal and typing ruby enumerable.rb
  • Happy coding!

Using Rspec to test

  1. Run bundle install.
  2. Run Rake.
  3. See the spec log on the console to check the results.

Example

Display

🤝 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!

📝 License

This project is copyright protected, Feel free to contact the authors to collaborate.

About

This is a demonstration of how someone can create ruby's core functions using the enumerable module. It is very flexible and if someone needs to write the functions they can to ease their workflow.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages