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

You call `b.eval("y = 5")` on a binding `b` captured at the top level. What is the visibility of `y`?

b = binding b.eval("y = 5") b.local_variable_get(:y) # => 5 y # => NameError