Crystal · Lesson 10

Blocks, procs and exceptions

Write methods that yield, capture blocks as procs, build procs with ->, and raise and rescue custom exceptions.

Lessons · Crystal · Lesson 10 of 10

Blocks, procs and exceptions

Write methods that yield, capture blocks as procs, build procs with ->, and raise and rescue custom exceptions.

Illustration for Crystal
Write methods that yield, capture blocks as procs, build procs with ->, and raise and rescue custom exceptions.