/blocks_2

Exercise exploring blocks, procs and lambdas in Ruby

Primary LanguageRuby

Makers Academy Week 2

blocks_2

Exercise going through the blocks, procs and lambdas challenge for Makers Academy. This was an optional challenge.

Objectives

  • Write unit tests and implement the map, select and each methods
  • Create a proc and use it with the map method instead of a block
  • Write a unit test for inject method when a block is passed

Technologies used

  • Ruby
  • Rspec