summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/nodes/node.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/psych/nodes/node.rb b/lib/psych/nodes/node.rb
index ce1bfe8..b5ae131 100644
--- a/lib/psych/nodes/node.rb
+++ b/lib/psych/nodes/node.rb
@@ -11,6 +11,10 @@ module Psych
def initialize
@children = []
end
+
+ def to_ruby
+ Visitors::ToRuby.new.accept self
+ end
end
end
end