Skip to content

Microverse Bootcamp Ruby module project 2. In the project, we implement (also called Monkey patching ) our own versions of enumerable in the Ruby programming language. Enumerables are methods we can call on an Iterable data structure such as Arrays, ranges, hashes etc where we loop through each element in the data structure.

Notifications You must be signed in to change notification settings

SamroodAli/enumerables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerables

Enumerables solution using Ruby language.

screenshot

What are enumerables?

Enumeration refers to traversing over objects. In Ruby, we call an object enumerable when it describes a set of items and a method to loop over each of them.

The built-in enumerables get their enumeration features by including the Enumerable module, which provides methods like #include?, #count, #map and #select amongst others.

Read me on Appsignal blog

Built With

  • Ruby Programming Language

Getting Started

To get a local copy up and running follow these simple example steps.

  • Go to "https://github.com/Stephanie041996/enumerables"
  • Click on the green button with text "code" and copy the HTTPS/SSH URL
  • If you cannot understand the instruction above, cppy this: github.com/Stephanie041996/enumerables.git
  • In your computer, open your terminal application, type in git clone followed by the link you copied
  • git clone git@github.com/Stephanie041996/enumerables.git
  • to run type the command "ruby enumerables.rb" in your terminal

Run tests

  • In your terminal, type in "bundle install" to download and install the testing framework
  • Run "bundle exec rspec" for running the tests already written.

Authors

Samrood Ali's GitHub stats

👤 Samrood Ali

👤 Stephanie Sakuhuni

Stephanie's GitHub stats

🤝 Contributing

  • Odin project
  • Microverse

Feel free to check the issues page.

Show your support

Give a ⭐️ if you like this project!

📝 License

This project is MIT licensed.

About

Microverse Bootcamp Ruby module project 2. In the project, we implement (also called Monkey patching ) our own versions of enumerable in the Ruby programming language. Enumerables are methods we can call on an Iterable data structure such as Arrays, ranges, hashes etc where we loop through each element in the data structure.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%