/Enumerables

Built-in Ruby enum methods written in custom algorithm. These methods are re-written as an exercise to understand inner workings of Ruby and get comfortable with the language.

Primary LanguageRuby

Advanced Building Blocks - Enumerable Methods

Built-in Ruby enum methods written in custom algorithm

Built-in enum methods such as: #each, #each_with_index, #select, #all?, #any?, #none?, #count, #map, #inject. These methods are re-written as an exercise to understand inner workings of Ruby and get comfortable with the language.

Built With

  • Ruby,
  • VS Code, Linters, Rubocop

Getting Started

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

Prerequisites

  • Get ruby latest version installed

Setup

  • Clone the repository on your local machine
  • cd into the folder, find the enumerables.rb and enum_test.rb file and open it in code editor

Install

  • Install VSCode or any code editor you like
  • Install Ruby(most recent version)
  • Run this command on your terminal in order to install rubocop: gem install rubocop

Run tests

  • Clone the repo to your local folder.
  • cd to the folder.
  • install rspec by gem install rspec
  • Run rspec.
  • 78 examples, 0 failures will be output.

Author

👤 Tirthajyoti Ghosh

🤝 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 Ruby Docs
  • As always, thank you Microverse for giving me this oppurtunity.

📝 License

This project is MIT licensed.