Skip to Content
Learn
Blocks, Procs, and Lambdas
Creating a Proc

Now let’s tackle procs. First step: create one!

Instructions

1.

Create a proc called under_100 that checks if a number it’s passed is less than 100. (We’ll handle passing this proc the .select method in the next exercise—we won’t need to do anything with the ages array just yet.)

Folder Icon

Take this course for free

Already have an account?