diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 11:51:09 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-09-28 11:51:09 -0700 |
commit | 483d0d30bf783e04dfdb458b65219281dda76cff (patch) | |
tree | 45d4b772528772b7e2ffd03a7e4c02e77c8bee78 /lib | |
parent | a469ea7ffe371dd5e69f1d65485a06c5bc66e6fa (diff) | |
download | psych-483d0d30bf783e04dfdb458b65219281dda76cff.zip |
sequences 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 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 |