1 2 3 4 5 6
loop do var = "test" puts var break end puts var
1 2
Line 6: undefined local variable or method `var' for main:Object (NameError) test