Coder Social home page Coder Social logo

uzairali19 / enumerable_blocks Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 62 KB

This is a demonstration of how someone can create ruby's core functions using the enumerable module. It is very flexible and if someone needs to write the functions they can to ease their workflow.

Ruby 100.00%
ruby enumerables methods functions enumerable-methods

enumerable_blocks's Introduction

Advanced Building Blocks - Enumerables

The project is based on reproducing the enumerable methods to their usable states. The functions would have the prefix #my_ attached to them, eg: the #each function would be #my_each.

Functions to test :

  • #my_each
  • #my_each_with_index
  • #my_select
  • #my_all?
  • #my_any?
  • #my_none?
  • #my_count
  • #my_map
  • #my_inject

Technologies Used

  • Ruby

Authors

๐Ÿ‘ค Uzair

Getting Started

To get a local copy of this project follow the steps below:

Setup Local

Use git clone https://github.com/uzairali19/enumerable_blocks.git to clone the branch directly to your machine

Setting up linter

  1. Run bundle install.
  2. Run rubocop.
  3. Fix linter errors.
  4. IMPORTANT NOTE: feel free to research auto-correct options for Rubocop if you get a flood of errors but keep in mind that correcting style errors manually will help you to make a habit of writing a clean code!
  • Navigate the project, you can open it with VScode or any other code editor of choice
  • run the code by opening up your terminal and typing ruby enumerable.rb
  • Happy coding!

Using Rspec to test

  1. Run bundle install.
  2. Run Rake.
  3. See the spec log on the console to check the results.

Example

Display

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

๐Ÿ“ License

This project is copyright protected, Feel free to contact the authors to collaborate.

enumerable_blocks's People

Contributors

uzairali19 avatar

Watchers

 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.