Skip to content

In this project, I will implement my own version of Ruby’s enumerable methods.

Notifications You must be signed in to change notification settings

RossielCS/Enumerables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerables

In this project, I implemented my version of Ruby’s enumerable methods. I created a script file and added the new methods into the existing Enumerable module. The project requirements are here.

screenshot

Built With

  • Ruby 2.6.5p114,
  • Visual Studio Code 1.43.2,
  • Rubocop,
  • Git

Live Demo

Live Demo Link

Features

These are the cloned methods:

  • each,
  • each_with_index,
  • select,
  • all?,
  • any?,
  • none?,
  • count,
  • map,
  • inject

Also, as additional features:

  • multiply_els method to test my_inject,
  • Changed my_map method to take either a proc or a block.

Test cases

To execute the test perform the following command in your terminal.

rspec spec/main_spec.rb -fdoc #it will provide you well-organized output on your terminal

Getting Started

Prerequisites

  • OS: MacOS, Ubuntu or a Virtual Machine,
  • Code editor,
  • Ruby

Setup

Here is a helpful link to The Odin Project with instructions on how to install Ruby Language.

Author

👤 Rossiel Carranza

🤝 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

  • Hat tip to anyone whose code was used
  • Inspiration
  • etc

📝 License

This project is MIT licensed.

About

In this project, I will implement my own version of Ruby’s enumerable methods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages