diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 13:39:32 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 13:39:32 +0000 |
commit | 23ccbdf52188b78427f41d75b1a4b81959ac9876 (patch) | |
tree | 6299f0aecb2ce602282b1343ac0cb57fda4a18e6 /lib/rexml | |
parent | 10f820b18d8c6011a7f98e56ac859903c56b15e6 (diff) |
merge revision(s) 48402:ruby_1_9_3
* lib/rexml/document.rb: add REXML::Document#document.
reported by Tomas Hoger <thoger@redhat.com> and patched by nahi.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@48406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml')
-rw-r--r-- | lib/rexml/document.rb | 4 | ||||
-rw-r--r-- | lib/rexml/entity.rb | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb index 2f9e659772..9f94d9707a 100644 --- a/lib/rexml/document.rb +++ b/lib/rexml/document.rb @@ -240,6 +240,10 @@ module REXML end end + def document + self + end + private def build( source ) Parsers::TreeParser.new( source, self ).parse diff --git a/lib/rexml/entity.rb b/lib/rexml/entity.rb index dc3f666cad..d10b051f18 100644 --- a/lib/rexml/entity.rb +++ b/lib/rexml/entity.rb @@ -157,6 +157,7 @@ module REXML # This is a set of entity constants -- the ones defined in the XML # specification. These are +gt+, +lt+, +amp+, +quot+ and +apos+. + # CAUTION: these entities does not have parent and document module EntityConst # +>+ GT = Entity.new( 'gt', '>' ) |