Commit 11a20069 authored by KitaitiMakoto's avatar KitaitiMakoto

Change default XML backend from REXML to Nokogiri

parent aea289a6
require "rexml/document"
begin
require "nokogiri"
rescue LoadError
end
module EPUB
class Parser
......@@ -19,6 +15,13 @@ module EPUB
end
end
begin
require "nokogiri"
@backend = :Nokogiri
rescue LoadError
@backend = :REXML
end
module Refinements
[REXML::Element, REXML::Text].each do |klass|
refine klass do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment