Skip to content

SevlaMare/enumerables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enumerable Methods

Project to re-build a few methods of Ruby Language.

screenshot


Methods based on Enumerable module and Array class.
As described on documentation here Enumerable and Array
Inject

Content

Requirements

    Features

    Re-make these methods and match with documentation expected behavior

  • .each (Only one from Array)
  • .each_with_index
  • .select (Filter like)
  • .all?
  • .any?
  • .none?
  • .count
  • .map
  • .inject (Reduce like)

    Additional features

  • Create .multiply_els to test .inject
  • Should multiply all the elements of array together

  • Extends .map to accept procs

Built With

  • Ruby Language
  • Rubocop (Linter) with Stickler (CI Tool)
  • Git, Github and VScode

Live Demo

Run on Repl.it

Quick Start

To get a local copy use:

git clone git@github.com:SevlaMare/enumerables.git

Dependencies

Ruby 2.5.5

Contributing

Contributions, issues and feature requests are welcome!

You can do it on issues page.

Acknowledgments

A special thanks for the code reviewers.

Author

👤 Thiago Miranda

License

Creative Commons

Releases

No releases published

Packages

No packages published

Languages