From 389b5f9e1ac0d3f2cb72a0a7f7c85156021f00ed Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 16 Jun 2015 18:12:43 +0300 Subject: [PATCH] same - change as for array --- lib/sof/hash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sof/hash.rb b/lib/sof/hash.rb index a52fe05..4b7a1b1 100644 --- a/lib/sof/hash.rb +++ b/lib/sof/hash.rb @@ -36,7 +36,7 @@ module Sof # The output of a Hash can be a long or a short format # The short is used for 7 or less SimpleNodes - def out io , level = 0 + def out io , level super short = true children.each do |k,v| @@ -73,7 +73,7 @@ module Sof children.each_with_index do |child , i| key , val = child io.write "\n#{indent}" unless i == 0 - io.write "-" + io.write "- " key.out(io , level + 1) io.write " => " val.out(io , level + 1)