From: Love U Ruby Date: 2013-05-19T20:45:42+09:00 Subject: Re: Need help for Kernel methods Is there any difference between `kernel#caller` and `kernel#caller_locations`? Looking at the below code I am not able to find any difference between them? def test caller(0..2) end def chk test end p chk #=> ["/home/kirti/ruby/test.rb:3:in `test'", "/home/kirti/ruby/test.rb:6:in `chk'", "/home/kirti/ruby/test.rb:8:in `
'"] def test caller_locations(0..2) end def chk test end p chk #=> ["/home/kirti/ruby/test.rb:3:in `test'", "/home/kirti/ruby/test.rb:6:in `chk'", "/home/kirti/ruby/test.rb:8:in `
'"] -- Posted via http://www.ruby-forum.com/.