summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2009-09-28 11:51:09 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2009-09-28 11:51:09 -0700
commit483d0d30bf783e04dfdb458b65219281dda76cff (patch)
tree45d4b772528772b7e2ffd03a7e4c02e77c8bee78 /lib
parenta469ea7ffe371dd5e69f1d65485a06c5bc66e6fa (diff)
downloadpsych-483d0d30bf783e04dfdb458b65219281dda76cff.zip
sequences 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 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