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

A `Binding` is captured early in a method; the local it references is then reassigned before the method returns. What does reading that local through the binding afterward show?

def make x = 1 b = binding x = 2 b end make.local_variable_get(:x) # => 2