← Back to archive

Stdle #7 · blocks · 2026-06-13

What does this Ruby snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

def test
p = Proc.new { return "from proc" }
p.call
"after proc"
end
puts test
Blocks
4 attempts left

Answer & explanation