Current Path : /usr/local/share/ri/1.8/system/Exception/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/Exception/backtrace-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: "Returns any backtrace associated with the exception. The backtrace is an array of strings, each containing either ``filename:lineNo: in `method''' or ``filename:lineNo.''" - !ruby/struct:SM::Flow::VERB body: " def a\n raise "boom"\n end\n\n def b\n a()\n end\n\n begin\n b()\n rescue => detail\n print detail.backtrace.join("\\n")\n end\n" - !ruby/struct:SM::Flow::P body: <em>produces:</em> - !ruby/struct:SM::Flow::VERB body: " prog.rb:2:in `a'\n prog.rb:6:in `b'\n prog.rb:10\n" full_name: Exception#backtrace is_singleton: false name: backtrace params: | exception.backtrace => array visibility: public