diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 12:09:59 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 12:09:59 -0700 |
commit | 1d0463ca1f63f84032b5b983962e59f88ff123a0 (patch) | |
tree | 376518e957f132601c3df11cff8db91cc4ecd993 /lib | |
parent | 9f5da8f6aa0bfc3d59817de9d5c8a22000c0b9ce (diff) | |
download | psych-1d0463ca1f63f84032b5b983962e59f88ff123a0.zip |
streams convert to ruby
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/visitors/to_ruby.rb | 4 |
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 |