Hide XmlMini backend details from rdoc
This commit is contained in:
parent
bca510cec2
commit
2133044fec
@ -11,8 +11,8 @@
|
||||
unless REXML::Document.respond_to?(:entity_expansion_limit=)
|
||||
require 'rexml/entity'
|
||||
|
||||
module REXML
|
||||
class Entity < Child
|
||||
module REXML #:nodoc:
|
||||
class Entity < Child #:nodoc:
|
||||
undef_method :unnormalized
|
||||
def unnormalized
|
||||
document.record_entity_expansion! if document
|
||||
@ -22,7 +22,7 @@ def unnormalized
|
||||
@unnormalized
|
||||
end
|
||||
end
|
||||
class Document < Element
|
||||
class Document < Element #:nodoc:
|
||||
@@entity_expansion_limit = 10_000
|
||||
def self.entity_expansion_limit= val
|
||||
@@entity_expansion_limit = val
|
||||
|
@ -21,15 +21,15 @@ def parse(string)
|
||||
end
|
||||
end
|
||||
|
||||
module LibXML
|
||||
module Conversions
|
||||
module Document
|
||||
module LibXML #:nodoc:
|
||||
module Conversions #:nodoc:
|
||||
module Document #:nodoc:
|
||||
def to_hash
|
||||
root.to_hash
|
||||
end
|
||||
end
|
||||
|
||||
module Node
|
||||
module Node #:nodoc:
|
||||
CONTENT_ROOT = '__content__'
|
||||
LIB_XML_LIMIT = 30000000 # Hardcoded LibXML limit
|
||||
|
||||
|
@ -18,14 +18,14 @@ def parse(string)
|
||||
end
|
||||
end
|
||||
|
||||
module Conversions
|
||||
module Document
|
||||
module Conversions #:nodoc:
|
||||
module Document #:nodoc:
|
||||
def to_hash
|
||||
root.to_hash
|
||||
end
|
||||
end
|
||||
|
||||
module Node
|
||||
module Node #:nodoc:
|
||||
CONTENT_ROOT = '__content__'
|
||||
|
||||
# Convert XML document to hash
|
||||
|
Loading…
Reference in New Issue
Block a user