summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/visitors/to_ruby.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/psych/visitors/to_ruby.rb b/lib/psych/visitors/to_ruby.rb
index bd04dda..57db346 100644
--- a/lib/psych/visitors/to_ruby.rb
+++ b/lib/psych/visitors/to_ruby.rb
@@ -6,6 +6,10 @@ module Psych
visitor_for(Nodes::Scalar) do |o|
o.value
end
+
+ visitor_for(Nodes::Sequence) do |o|
+ o.children.map { |o| o.accept self }
+ end
end
end
end