Ruby - Blocks, Procs, and Lambdas
Given this code, what will be printed?
def test
p = Proc.new { |x| return x * 2 }
result = p.call(4)
puts "After Proc call"
result
end
puts test