Created
April 5, 2016 17:30
-
-
Save mindplace/0016c54fd8310495b2df11d475e08ab4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Array | |
def my_each(&prc) | |
i = 0 | |
while i < self.count | |
prc.call(self[i]) | |
i += 1 | |
end | |
self | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment