eliasecasta / Enumerables

The goal of this project was to duplicate some Enumerable class methods in order to learn about how to create methods inside classes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enumerables

The goal of this project was to duplicate some Enumerable class methods in order to learn about how to create methods inside classes.

Output

Input

my_numbers = [5 ,6, 7, 8]
my_numbers.my_inject {|sum, number| sum + number}

Output

> 26

Demo Link

Live Demo Link.

Built With

  • Ruby
  • Rubocop

Authors

👤 Elias Castañeda

👤 Jessica Farias

Getting Started

To get a local copy up and running follow these simple example steps.

  1. Open the terminal comand line window
  2. git clone https://github.com/e71az/Enumerables.git
  3. Open the spec folder and execute the bubble_spec.rb script
  4. Enjoy!

🤝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the Issue page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

The goal of this project was to duplicate some Enumerable class methods in order to learn about how to create methods inside classes.

License:MIT License


Languages

Language:Ruby 100.0%