From: Brian Takita Date: 2006-01-21T14:32:28+09:00 Subject: Re: Method definitions and Line numbers ------=_Part_4807_3036472.1137821535399 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline > > Check out the __FILE__ and __LINE__ constants. I apologize for not being clear. Lets say we have a class Test that raises an error. class Test def method_with_an_error raise Error end end t =3D Test.new t.method_with_an_error Now the following error message is outputted in the command line. /home/btakita/src/scratch3.rb:3:in `method_with_an_error': Exception (Exception) from /home/btakita/src/scratch3.rb:8 How does Ruby keep track where :method_with_an_error is stored? Can I make a query as to where :method_with_an_error is defined? -- Thank you, Brian Takita http://weblog.freeopinion.org ------=_Part_4807_3036472.1137821535399--