From a2a439833d7178996dc83f14ef03f6e5216e1ef3 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 5 Jun 2007 05:48:45 +0000 Subject: * lib/pp.rb (PP::PPMethods::seplist): revert last change to work around wrapper bug. [ruby-dev:30840] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pp.rb b/lib/pp.rb index 5e4f20ced..7d2d7ebe0 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -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 -- cgit