diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 13:35:51 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-13 13:35:51 +0000 |
commit | d6ea8d18f9ffb76aa3541087e55e90c030295129 (patch) | |
tree | b1773e49466ec5b23a70bd1995708735a352a48d /lib/rexml/document.rb | |
parent | fd25950ec7234ea48fc98da064cbe43b7701237c (diff) |
merge revision(s) 48402:
* 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_2_0_0@48403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/document.rb')
-rw-r--r-- | lib/rexml/document.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb index 76679d1c16..e5cef13b03 100644 --- a/lib/rexml/document.rb +++ b/lib/rexml/document.rb @@ -278,6 +278,10 @@ module REXML end end + def document + self + end + private def build( source ) Parsers::TreeParser.new( source, self ).parse |