aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pp.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-05 05:48:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-05 05:48:45 +0000
commit8ef2289a494a16789cf4add22dbf7ad56595f90a (patch)
treee19662106e3d3f5d811728a1324f966c8930e1a4 /lib/pp.rb
parent931614a341b3113efd41893d1a95b22073dc2f68 (diff)
downloadruby-8ef2289a494a16789cf4add22dbf7ad56595f90a.tar.gz
* lib/pp.rb (PP::PPMethods::seplist): revert last change to work
around wrapper bug. [ruby-dev:30840] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index 5e4f20cedf..7d2d7ebe05 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