Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyblocks procs lambdas bindingSingle-choice MCQ

In Ruby 3.x, what do `lambda?` report for these two procs derived from objects?

p :upcase.to_proc.lambda? p "hi".method(:upcase).to_proc.lambda?