From: John Sikora Date: 2009-09-05T01:04:07+09:00 Subject: Re: Is Passing a Binding with Parameters Possible? 7stud -- wrote: > Or this: > > def calling_method > a = 3 > b = 4 > eval_str1 = 'puts a' > eval_str2 = 'puts b' > params = Parameters.new(binding, eval_str1, eval_str2) > called_method(params) > end > > calling_method # => 3, 4 7stud, I was hoping to be able to do it w/o having to include the binding (in any form)in calling_method. In other words, the binding could be 'attached' to the parameters similar to a code block. Thanks, John S. -- Posted via http://www.ruby-forum.com/.