summaryrefslogtreecommitdiff
path: root/lib/psych/visitors/yaml_tree.rb
diff options
context:
space:
mode:
authorJoseph Bisch <joseph.bisch@gmail.com>2015-07-10 16:25:48 -0400
committerJoseph Bisch <joseph.bisch@gmail.com>2015-07-10 16:25:48 -0400
commit5c9c5689757c45f9d8aa8abc4dfd9bddb6327087 (patch)
tree58ab17e27ebefec259f9a5f0fb95060fd543f60c /lib/psych/visitors/yaml_tree.rb
parent86388bbc72c7bd10d3482cc63dfdfa276c604baf (diff)
downloadpsych-5c9c5689757c45f9d8aa8abc4dfd9bddb6327087.zip
Fix omap to be !!omap instead of !omap
Fixes #241
Diffstat (limited to 'lib/psych/visitors/yaml_tree.rb')
-rw-r--r--lib/psych/visitors/yaml_tree.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/visitors/yaml_tree.rb b/lib/psych/visitors/yaml_tree.rb
index e13fd77..3087a4d 100644
--- a/lib/psych/visitors/yaml_tree.rb
+++ b/lib/psych/visitors/yaml_tree.rb
@@ -156,7 +156,7 @@ module Psych
end
def visit_Psych_Omap o
- seq = @emitter.start_sequence(nil, '!omap', false, Nodes::Sequence::BLOCK)
+ seq = @emitter.start_sequence(nil, 'tag:yaml.org,2002:omap', false, Nodes::Sequence::BLOCK)
register(o, seq)
o.each { |k,v| visit_Hash k => v }