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.
- Ruby,
- VS Code, Linters, Rubocop
To get a local copy up and running follow these simple example steps.
- Get ruby latest version installed
- Clone the repository on your local machine
- cd into the folder, find the
enumerables.rb
andenum_test.rb
file and open it in code editor
- 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
- 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.
👤 Tirthajyoti Ghosh
- Github: @tirthajyoti-ghosh
- Twitter: @terrific_ghosh
- Linkedin: Tirthajyoti Ghosh
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Give a ⭐️ if you like this project!
- Hat tip to Ruby Docs
- As always, thank you Microverse for giving me this oppurtunity.
This project is MIT licensed.