From: Brian Candler Date: 2012-12-12T21:13:31+09:00 Subject: Re: How I can create/extract a variable/hash into the current binding in Ruby? A simpler test case: def foo(b) b.eval "a = 1" end b = binding foo(b) puts a # NameError: undefined local variable or method 'a' b.eval "puts a" # this is fine puts local_variables # shows both a and b -- Posted via http://www.ruby-forum.com/.