lirad / ruby-enumerable-methods

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby Enumerables

This project is part of the Odin Project Ruby excercise. The goal is to replicate the main Enumerables used in Ruby such as each, select, inject, map and, others.

Built With

  • Rub
  • VSCode
  • Rubocop

Live Demo

To quickly see our project in action, visit the live demo on repl.it.

Getting Started

Prerequisites

To get this project up and running, you must already have ruby installed on your computer.

Installation

To get this project set up on your local machine, follow these simple steps:

  1. Open Terminal.
  2. Navigate to your desired location to download the contents of this repository.
  3. Copy and paste the following code into the Terminal: git clone https://github.com/lirad/enumerables.git
  4. Hit enter.
  5. Once the repository has been cloned, navigate inside the repository and type: ruby bubble_sort.rb This will run the code, printing the output of our tests to the terminal.
  6. To change those tests, simply open enumerables.rb in a code editor and modify the values stored in the test_array and test_run variables.
  7. Enjoy sorted arrays of data for the rest of your life.

Testing

To run the tests for all public methods, follow these simple steps: 1- Install rspec by runing the following command "gem install rspec " 2- Navigate to the "spec" folder by running the following command: "cd spec" 3- Run "rspec"

Authors

👤 Diego lirad

👤Akintoye Olamide

🤝 Contributing

Show your support

If you've read this far, you must like the project! Give us a ⭐️!

Acknowledgments

  • This Project was part of an assignment available on The Odin Project.
  • Our thanks to Microverse and all our peers and colleagues there.

📝 License

This project has no license

About


Languages

Language:Ruby 100.0%