xml4r/libxml-ruby — pull request #41 by carpodaster (2012-06-21 15:43:17+00:00)
Title: Add XML::Error.get_handler

¡Hola!

In order to preserve the global error handler that might be set I've exposed the current handler through a new singleton method called XML::Error.get_handler.

Tested with the following libxml2 versions and operating systems:

v2.7.3 - OS X 10.7 with 1.9.2-p180
v2.7.8 - Ubuntu 12.04 (amd64) with 1.9.2-p180 and 1.8.7-p358
v2.7.8 - FreeBSD 9.0 (amd64) with 1.9.2-p180 and 1.8.7-p358

-Carsten

PS: first work on a Ruby C-extension, so please be gentle ;)