def aMethod return binding end the_binding = aMethod { puts "hello" } eval "yield", the_binding # hello
def aMethod a = "local variable" return binding end the_binding = aMethod eval "a", the_binding # "local variable"