def context p = proc do puts "in proc" return puts "after return in proc" end p.call puts "end of context method" end context # => in proc