[libxml-devel] Libxml directory structure

Sean Chittenden sean at chittenden.org
Wed Jul 16 16:55:50 EDT 2008


> require 'libxml/xml'
>
> Were libxml/xml.rb is simply
>
> require 'libxml'
> include LibXML


I know I'm late to the discussion, but how about this tweak:

require 'libxml'
unless ['0','false','no','off',false,nil].include?  
(ENV['RUBY_LIBXML_SHORT_PATH'].nil? ? true :  
ENV['RUBY_LIBXML_SHORT_PATH'].downcase])
   include LibXML
end

I think a get out of jail free card would be nice and having it  
conditionalized behind an environment variable is convenient for folks  
if they're in a jam.  -sc

--
Sean Chittenden
sean at chittenden.org





More information about the libxml-devel mailing list