summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-28 12:09:59 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-28 12:09:59 -0700
commit1d0463ca1f63f84032b5b983962e59f88ff123a0 (patch)
tree376518e957f132601c3df11cff8db91cc4ecd993 /lib
parent9f5da8f6aa0bfc3d59817de9d5c8a22000c0b9ce (diff)
downloadpsych-1d0463ca1f63f84032b5b983962e59f88ff123a0.zip
streams convert to ruby
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 a4e6152..27b7778 100644
--- a/lib/psych/visitors/to_ruby.rb
+++ b/lib/psych/visitors/to_ruby.rb
@@ -18,6 +18,10 @@ module Psych
visitor_for(Nodes::Document) do |o|
o.root.accept self
end
+
+ visitor_for(Nodes::Stream) do |o|
+ o.children.map { |c| c.accept self }
+ end
end
end
end