The goal of this project was to duplicate some Enumerable class methods in order to learn about how to create methods inside classes.
Input
my_numbers = [5 ,6, 7, 8]
my_numbers.my_inject {|sum, number| sum + number}
Output
> 26
- Ruby
- Rubocop
👤 Elias Castañeda
👤 Jessica Farias
- Github: jessicafarias
- Twitter: @FariasRosado
- Linkedin: jessica-michelle-farias-rosado
To get a local copy up and running follow these simple example steps.
- Open the terminal comand line window
git clone https://github.com/e71az/Enumerables.git
- Open the spec folder and execute the bubble_spec.rb script
- Enjoy!
Contributions, issues and feature requests are welcome!
Feel free to check the Issue page.
Give a ⭐️ if you like this project!
This project is MIT licensed.