Ruby - Blocks, Procs, and Lambdas
What will be the output of the following Ruby code?
def test_proc
p = Proc.new { return "From Proc" }
p.call
return "From method"
end
puts test_proc