From: Przemek Wrzos Date: 2008-07-29T20:23:14+09:00 Subject: Ruby 1.9 Binding#exec and introspection I'd like to open up a discussion about extending the Binding class we have available in Ruby. Apologies if this is already happening somewhere but I couldn't find any discussions on the topic. I think it's great Ruby 1.9 now has added Binding#eval. Having access to the local binding is a powerful tool and it would be great to see it become more accessible. I think it would be nice to see something like the new class_exec and instance_exec methods for the Binding class so we don't have to go through string evals. Specifically a Binding#exec Some introspective abilities would also be a bonus. The most obvious ones I can think of are: Binding#local_variables, Binding#local_variable_get There's probably more information we can pull out of the local binding but these two are things I really miss from Python. What do you guys think, let's hear some ideas. Cheers -- Posted via http://www.ruby-forum.com/.