Ruby concepts

Ruby · Blocks

Ruby Blocks puzzles

1 Ruby puzzle on blocks. Read the snippet, guess the output, then reveal the answer and why Ruby behaves that way.