From: "Jesús Gabriel y Galán" Date: 2012-10-09T22:53:32+09:00 Subject: Re: the name of the method where was created On Tue, Oct 9, 2012 at 3:14 PM, Mario Ruiz wrote: > I want to know in ba the name of the method, is that possible? > def xx() > x="miequis" > return x > end > def yy() > y="miygriega" > return y > end > > > def ba(par) > > #i want to know in here that par is xx, yy.... > > end > > > > ba(xx) The way you wrote it is not possible, if you need to know which method produced the value. When you write this: ba(xx) the method xx gets executed, and the return value is passed to the method ba, but ba cannot know if method xx was executed. From the point of view of ba, there is no difference between: ba(xx) and ba("miequis") unless you do some tricks, like modifying some global state inside xx and yy, so that ba can check it and know which one was called (I cannot recommend this approach). Can you explain what exactly you want to achieve? Jesus.