提交 17940a82 编写于 作者: P Pratik Naik

Don't re-require 'rexml/document'

上级 05a938c5
......@@ -17,7 +17,7 @@ module XmlMini
# string::
# XML Document string to parse
def parse(string)
require 'rexml/document'
require 'rexml/document' unless defined?(REXML::Document)
doc = REXML::Document.new(string)
merge_element!({}, doc.root)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册