I wonder, why is a
visible?
if true
puts 'true'
else
puts 'false'
a = 123
end
puts a # no error
# or
# my_hash = {key: a}
# puts my_hash # :key => nil
But this causes an error, even though there will be 'true' shown
if true
puts 'true'
else
puts 'false'
a = 123
end
puts a2 # boooooom