From: Ronnie Aa Date: 2012-04-28T21:24:59+09:00 Subject: Re: list local_variables in a def by means of a method Bartosz DziewoƄski wrote in post #1058785: > You can't. The "listvar" method has a different scope than "one" or > "two", and thus different local variables. You could try passing a > binding to the "listvar" method, but I don't know if it's worth the > hassle. > > -- Matma Rex Thnx Matma, It would be very convenient for me to get a list of my vars in a simple way. So once I'm through the hassle of writing the method ,I can use it over and over again and enjoy! But how can I use these bindings?? -- Posted via http://www.ruby-forum.com/.