aboutsummaryrefslogtreecommitdiffstats
path: root/lib/pp.rb
diff options
context:
space:
mode:
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