Git Product home page Git Product logo

enumerables's Introduction

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.

enumerables's People

Contributors

maclenn77 avatar rossielcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.