Skip to content
Poignant Guide Ruby Q&A
Sections

closures

1 thread tagged with this topic

Threads tagged closures

  1. ✓

    What is the difference between a proc and a lambda in Ruby?

    Both are objects that hold code you can call later. They differ in two ways: a lambda checks its argument count like a method does, and return inside a lambda...

    Blocks, procs and iteratorsOdile MarchettiStaff answer
    0replies
Poignant Guide Ruby Q&A. Questions and answers on learning Ruby and programming: syntax, blocks, objects, gems, Rails, debugging and reading the Poignant Guide.