From: Love U Ruby Date: 2013-05-19T20:31:59+09:00 Subject: Re: Need help for Kernel methods Yes, Now I understood this Kernel# caller_locations method. def test caller_locations end def chk test end p chk #=> ["/home/kirti/ruby/test.rb:5:in `chk'", "/home/kirti/ruby/test.rb:7:in `
'"] def test caller_locations(1) end def chk test end p chk #=> ["/home/kirti/ruby/test.rb:5:in `chk'", "/home/kirti/ruby/test.rb:7:in `
'"] def test caller_locations(0) end def chk test end p chk #=> ["/home/kirti/ruby/test.rb:16:in `test'", "/home/kirti/ruby/test.rb:19:in `chk'", "/home/kirti/ruby/test.rb:21:in `
'"] @Matthew thanks for your hints. -- Posted via http://www.ruby-forum.com/.