diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | lib/pp.rb | 4 |
2 files changed, 8 insertions, 3 deletions
@@ -1,4 +1,9 @@ -Tue Jun 05 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org> +Tue Jun 5 14:47:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/pp.rb (PP::PPMethods::seplist): revert last change to work + around wrapper bug. [ruby-dev:30840] + +Tue Jun 5 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org> * ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback. @@ -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 |