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 `<main>': undefined method `flatten' for "aaa":String
(NoMethodError)
# >> [4, :raise, #<TypeError: no implicit conversion of Symbol into
String>]
# >> [5, :raise, #<NoMethodError: undefined method `flatten' for
"aaa":String>]

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/.