Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyProc vs lambda return and aritySingle-choice MCQ

What happens when this orphaned `Proc` (created in a method that already returned) is later called?

def make_proc Proc.new { return 10 } end pr = make_proc pr.call