Skip to content

I recreated the Ruby enumerable methods using my own methods with Ruby, Rubocop, Rspec

Notifications You must be signed in to change notification settings

euqueme/enumerable-methods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues


Logo

Enumerables

This project is part of the Microverse Ruby curriculum!
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

I recreated the Ruby enumerable methods using my own methods

This is the second project of the Microverse Ruby Section

This is also the second Assignment of the Odin project curriculum https://www.theodinproject.com/courses/ruby-programming/lessons/advanced-building-blocks

Built With

This project was built using these technologies.

  • Ruby
  • Rubocop
  • VsCode
  • Notepad++
  • Rspec

Usage

If you want to use the code you need to have ruby installed in your computer and copy the main.rb file from this project in your project or open an irb console and import it like this

require_relative main.rb

You can now use my Enumerable methods like the ruby Enumerable methods:

  • my_each == each
  • my_each_with_index == each_with_index
  • my_select == select
  • my_count == count
  • my_all == all
  • my_any == any
  • my_none == none
  • my_map == map
  • my_inject == inject

Live version

You can see it working with some dummy test cases here

Automated Test

To run the test clone or download the project, open a terminal in the project directory and run the following:

rspec spec/test_enumerables

Author

👤 María Eugenia Quemé

🤝 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!

Acknowledgements

About

I recreated the Ruby enumerable methods using my own methods with Ruby, Rubocop, Rspec

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages