summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych/nodes/document.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 01:47:58 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-04-28 01:47:58 +0000
commitf114089585d486920f53c0c4cb92d73dc4ed577c (patch)
tree6e504795ed0f8049fd18cbe7793487eaf41c0d24 /ext/psych/lib/psych/nodes/document.rb
parent13dc8e4ef0c45dc51af820bbca1315edc0b70fb2 (diff)
Merge Pysch 3.0.3.pre1.
I added the following additional commits from 3.0.3.pre1: * https://github.com/ruby/psych/pull/356 * https://github.com/ruby/psych/pull/357 * https://github.com/ruby/psych/pull/359 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/nodes/document.rb')
-rw-r--r--ext/psych/lib/psych/nodes/document.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/psych/lib/psych/nodes/document.rb b/ext/psych/lib/psych/nodes/document.rb
index 3cd418eaf3..f57410d636 100644
--- a/ext/psych/lib/psych/nodes/document.rb
+++ b/ext/psych/lib/psych/nodes/document.rb
@@ -56,6 +56,8 @@ module Psych
def root
children.first
end
+
+ def document?; true; end
end
end
end