Skip to content

christianotieno/ruby-enumerables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advanced Building Blocks - Enumerables

[Solo Project]

This project consists of implementing my own version of Ruby’s enumerable methods.

You can find the original project specification here

Authors

Christian Otieno

Tools Used

  • ruby
  • rubocop
  • Gemfile
  • Stickler
  • MarkDown Syntax

Work Done

  • Create #my_each, a method that is identical to #each but (obviously) does not use #each.
  • Create #my_each_with_index in the same way.
  • Create #my_select in the same way, though you may use #my_each in your definition (but not #each).
  • Create #my_all?
  • Create #my_any?
  • Create #my_none?
  • Create #my_count
  • Create #my_map
  • Create #my_inject
  • Test #my_inject in the #multiply_els method.
  • Modify #my_map method to take a proc instead.
  • Modify #my_map method to take either a proc or a block.

How to Install and use

  • clone the repository git clone https://github.com/ChristianOtieno/ruby-enumerables.git

About

A REBUILD OF RUBY'S ENUMERABLE MODULES FROM SCRATCH.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages