Skip to content

In this project, I have implemented my own version of Ruby’s enumerable methods.

Notifications You must be signed in to change notification settings

petudeveloper/My-Ruby-Enumerable-Methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerable Methods

In this project, we implemented our own version of Ruby’s enumerable methods.

Enumerable Methods: Steps on how it works:

Based on the documentation we created our own version to emulate these methods:

  • #my_each VS #each
  • #my_each_with_index VS #each_with_index
  • #my_select VS #select
  • #my_all? VS #all?
  • #my_any? VS #any?
  • #my_none? VS #none?
  • #my_count vs #count
  • #my_map VS #map
  • #my_inject VS #inject
  • #multiply_els VS #inject that multiplies all the elements of the array together

Built With

  • Ruby

Getting Started

To get a local copy of the repository please run the following commands on your terminal:

$ cd <folder>
$ git clone https://github.com/DanSam5K/project-2-enumerable-methods.git

Testing

To test the code, run ruby test_case.rb file from your terminal.

$ ruby test_case.rb

Authors

👤 David Alvarez

👤 Daniel Samuel

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

Acknowledgments

  • Project implemented based on the steps from The Odin Project Project 2: Enumerable Methods
  • Project inspired by Microverse Program

📝 License

This project is MIT licensed.

About

In this project, I have implemented my own version of Ruby’s enumerable methods.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages