I've just noticed that a lot of hpricot code is written in java...
I heard that JRuby performed a lot better than native ruby when processing regular expression. Is maybe the java classes just activated if JRuby or Java is installed and the ruby used if these are not found?
It's something puzzling indeed.
Thanks