A set of Ruby's standard enumerable methods re-created by the authors in the very same Ruby programming language.
In the project we have replicated our own version of the following methods:
- each,
- each_with_index,
- select,
- all,
- any,
- none,
- inject,
- map
- Ruby programming language
To run this program on your local machine, simply follow the steps below:
- Install the ruby programming language.
- Clone this repo on your local machine by running
git clone git@github.com:German-Cobian/Enumerable-Methods.git
cd
into theEnumerable-Methods
folder you just cloned.- run
ruby enumerables.rb
This project is tested with Rspec which is a computer domain-specific language (DSL) testing tool written in the Ruby programming language.
- Run the following command in the terminal:
gem install rspec
- This command installs Rspec on your computer. You ensure that Rspec is installed by running the following command to see the installed version:
rspec --version
- You should get output similar to the following:
RSpec 3.10 - rspec-core 3.10.1 - rspec-expectations 3.10.1 - rspec-mocks 3.10.2 - rspec-support 3.10.2
- The rspec gem comes packed with all you need to get started including the 5 gems listed above.
- Navigate into the requisite folder by running
cd AdvancedBuildingBlocks-Enumerables
- Run the following command to initialize Rspec:
rspec --init
- This generates a /spec folder and a .rspec file at the root of your project.
- Finally, to run the tests, simply run
rspec
👤 Mih Julius Ndim
- GitHub: @mihdim2020
- Twitter: @mihndim
- LinkedIn: @mih-julius
👤 German Cobian
- GitHub: @German-Cobian
- Twitter: @GermanCobian1
- LinkedIn: @german-cobian
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
- Guidelines for this project supplied by The Odin Project
This project is MIT licensed.