Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyBinding objectsSingle-choice MCQ

Inside a block you call `Proc#binding`, then `local_variable_set` a variable the proc closes over. What happens when the proc is later called?

x = 10 pr = proc { x } pr.binding.local_variable_set(:x, 99) p pr.call