The solo project to test my understanding of the Enumerable methods in Ruby.
It covers enumerable methods "each, each_with_index, select, all?, any?, none? count, map, inject".
The project is part of a series of projects to be completed by students of Microverse.
- Ruby
Clone the repository to your local machine
$ git clone https://github.com/shjang7/enumerable-method.git
Go to your directory
$ cd enumerable-method
Open your 'irb'
$ irb
irb(main):001:0>
Call module using require with file location
> require "./lib/enumerable"
Compare with original enumerable method
> print [1,2,3,4].each {|p| p}
> print [1,2,3,4].my_each {|p| p}
This is a solo project by me: Suhyeon Jang
- Fork it (https://github.com/shjang7/enumerable-method/fork)
- Create your feature branch (git checkout -b feature/[choose-a-name])
- Commit your changes (git commit -am 'what this commit will fix/add')
- Push to the branch (git push origin feature/[chosen-name])
- Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details