Skip to content

This is a practical project to create a ruby enumerable methods that can be called on arrays and hashes

Notifications You must be signed in to change notification settings

oloomoses/my_enumerable_methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My enumerable methods

This is a practical project to create a ruby enumerable methods that can be called on arrays and hashes

Description

The objective of this exercise is to create a ruby my_enumerable methods, that can be called on arrays and hashes using Ruby. the enumerables methods that I have created are:

  • my_each
  • my_each_with_index
  • my_select
  • my_all?
  • my_none?
  • my_count
  • my_any?
  • my_inject; with its testing method called multiply_els that multiplies all the elements of the array and returns the result.
  • my_map; it accepts either a proc or block.

I have also created a tests.rb script for testing my_enumerable methods

Built With

  • Ruby
  • Rubocop (linter)

Usage

Author

👨 Oloo Moses

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Support this project with a ⭐️ and let us now if you would like to become a contributor!

About

This is a practical project to create a ruby enumerable methods that can be called on arrays and hashes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages