Replicating The Each Method Ruby
In this guide you will learn how to replicate the functionality of the each method.
Guide Tasks
  • Read Tutorial
  • Complete the Exercise

Summary

Replicate the functionality of the each method and add it to an Array Class.

Exercise Description

"In this exercise you will be replicating the functionality of the each method and add it to the Array Class."

Example

'starting_arr = (1..3).to_a'
-> ending_arr = []

Real World Usage

This exercise will help you learn how replicate methods and add it to Arrays.

Test Cases

Code File