We created some custom enumerable methods to functionally match those found in the enumerable methods.
For this project, we created custom enumerable methods used by the Enumerable module in Ruby.
We created the most used Enumerable methods with an extensive use of the Ruby methods, data types, loops and conditionals.
To quickly see our project in action, visit the live demo on repl.it.
To get this project up and running, you must already have ruby installed on your computer.
To get this project set up on your local machine, follow these simple steps:
Open Terminal.
Navigate to your desired location to download the contents of this repository.
Copy and paste the following code into the Terminal:
git clone https://github.com/mcihadkurel/Enumerable-methods
Hit enter.
Once the repository has been cloned, navigate inside the repository and type:
ruby my_enumerable.rb
This will run the code, printing the output of our tests to the terminal.
To change those tests, simply open main.rb in a code editor and modify the values stored in the test_array and test_run variables.
Enjoy sorted arrays of data for the rest of your life.
Open Terminal
Install RSpec on your system by running:
gem install rspec
Run the tests with with the command:
rspec
👤 Bello Babakolo
👤Rick Oburu
The best way you can contribute to this project to improve it is by submitting an issue
If you’ve read this far, you must like the project! Give us a ⭐️!
This project has no license