update StyledYAML since the ruby Psych API has changed a little
Didier Lafforgue
committed Apr 03, 2018
commit fd883f59110737bb7e70aeeed9b101668e038b62
Showing 1
changed file with
1 additions
and 1 deletions
locomotive/wagon/tools/styled_yaml.rb b/lib/locomotive/wagon/tools/styled_yaml.rb
+1
-1
| @@ | @@ -105,7 +105,7 @@ module StyledYAML |
| # A Psych.dump alternative that uses the custom TreeBuilder | |
| def self.dump obj, io = nil, options = {} | |
| real_io = io || StringIO.new(''.encode('utf-8')) | |
| - | visitor = YAMLTree.new(options, TreeBuilder.new) |
| + | visitor = YAMLTree.create(options, TreeBuilder.new) |
| visitor << obj | |
| ast = visitor.tree | |