This project is part of a series of projects to be completed by students of Microverse. The motive of this project is to replicate some enumerable methods in Ruby in a test driven environment.
The selected methods replicated in this project are:
-
each
-
each_with_index
-
select
-
all?
-
any?
-
none?
-
count
-
map
-
inject
replicated as:
-
my_each
-
my_each_with_index
-
my_select
-
my_all?
-
my_any?
-
my_none?
-
my_count
-
my_map
-
my_inject
selected methods for test driven exercise:
-
my_each
-
my_select
-
my_all?
-
my_count
-
my_map
-
my_inject
- Ruby
Clone the repository to your local machine
sh $ git clone https://github.com/addod19/Testing_Custom_Enumerable.git
cd into the directory
sh $ cd enumerable
open custom_enum with your favourite text editor or with irb.
load the module and use our custom methods
ruby require "custom_enum"
Maya Alaa Eldin Mohamed Elfeky
- Fork it (https://github.com/addod19/Testing_Custom_Enumerable/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