diff options
Diffstat (limited to 'lib/pp.rb')
-rw-r--r-- | lib/pp.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -143,7 +143,7 @@ class PP < PrettyPrint # printed, a.k.a the object reference chain has a cycle. def pp(obj) id = obj.__id__ - + if check_inspect_key(id) group {obj.pretty_print_cycle self} return @@ -220,13 +220,13 @@ class PP < PrettyPrint def seplist(list, sep=nil, iter_method=:each) # :yield: element sep ||= lambda { comma_breakable } first = true - list.__send__(iter_method) {|*v| + list.__send__(iter_method) {|v| if first first = false else sep.call end - yield(*v) + yield(v) } end |