Perhaps you are looking for "Kernel#local_variables".

-- 
Posted via http://www.ruby-forum.com/.