Giter Club home page Giter Club logo

enumerables's Introduction

Recreating the Enumerable Methods

This project involves the recreation of the Ruby's major Enumerable methods found in its Enumerable module

screenshot

Additional description about the project and its features.

The code base is pretty straight forward as it involves adding custom methods into the Ruby's enumerable module. Whats follows is a glimpse of the recreated methods and its Ruby's equivalent method. All the recreated methods are prefixed with "my_" to to avoid conflicts with the original Ruby methods.

Original Method Recreated Method
each my_each
each_with_index my_each_with_index
map my_inject
all? my_all?
map my_map
any? my_any?
none? My_none?
count my_count
select my_select

Built With

  • Ruby,
  • Vscode

Getting Started

Clone this repo to get a local copy of the project locally. Modify this file to match your test cases

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

Prerequisites

  • Ensure that you have ruby installed -- check out the official documention
  • Text Editor: Visual Studio or sublime text recommended
  • Rubocop for linting

Setup

  • Check ruby version after installation.
  • Open the project folder with vscode.

Install

  • Run bundle install to install all the missing project dependencies.
  • gem install to install rubocop for linting purposes

Usage

  • execute the main.rb file by running "ruby main.rb".
  • Uncomment the test cases according to the method you want to test.
  • Open vscode terminal
  • You should see the output from the console.

Authors

๐Ÿ‘ค Cyrus Kiprop

๐Ÿค 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

  • eat() sleep() code() repeat()

๐Ÿ“ License

This project is MIT licensed.

enumerables's People

Contributors

cyrus-kiprop avatar

Stargazers

Isaac Obuya avatar

Watchers

James Cloos 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.