diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-05 05:48:45 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-05 05:48:45 +0000 |
| commit | a2a439833d7178996dc83f14ef03f6e5216e1ef3 (patch) | |
| tree | e19662106e3d3f5d811728a1324f966c8930e1a4 /lib/pp.rb | |
| parent | 3adb98316b0a8c75ee3ed93149854101fa8952f5 (diff) | |
| download | ruby-a2a439833d7178996dc83f14ef03f6e5216e1ef3.tar.gz ruby-a2a439833d7178996dc83f14ef03f6e5216e1ef3.tar.xz ruby-a2a439833d7178996dc83f14ef03f6e5216e1ef3.zip | |
* 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
Diffstat (limited to 'lib/pp.rb')
| -rw-r--r-- | lib/pp.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
