From: Love U Ruby Date: 2013-07-06T15:09:06+09:00 Subject: TracePoint class study I was going through the class - http://yard.ruby-doc.org/core-2.0/TracePoint.html trace = TracePoint.new(:raise) do |tp| p [tp.lineno, tp.event, tp.raised_exception] end trace.enable # => false "aaa".flatten # ~> -:5:in `
': undefined method `flatten' for "aaa":String (NoMethodError) # >> [4, :raise, #] # >> [5, :raise, #] But do not understand what are the purposes of other documented events like : :line,:class,:return,:call etc. Any example will be much appreciated. Thanks in advance. -- Posted via http://www.ruby-forum.com/.