ruby-changes:47852
From: nobu <ko1@a...>
Date: Wed, 20 Sep 2017 11:33:00 +0900 (JST)
Subject: [ruby-changes:47852] nobu:r59972 (trunk): fix up r59949
nobu 2017-09-20 11:32:55 +0900 (Wed, 20 Sep 2017) New Revision: 59972 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59972 Log: fix up r59949 * ext/ripper/lib/ripper/lexer.rb (List#inspect): splat self data to local variables same as members of Elem. Modified files: trunk/ext/ripper/lib/ripper/lexer.rb Index: ext/ripper/lib/ripper/lexer.rb =================================================================== --- ext/ripper/lib/ripper/lexer.rb (revision 59971) +++ ext/ripper/lib/ripper/lexer.rb (revision 59972) @@ -50,10 +50,12 @@ class Ripper https://github.com/ruby/ruby/blob/trunk/ext/ripper/lib/ripper/lexer.rb#L50 class Elem class List < ::Array def inspect + pos, event, tok, state = self [pos, event, tok, Ripper.lex_state_name(state)].inspect end def pretty_print(q) # :nodoc: + pos, event, tok, state = self q.group(1, '[', ']') { q.pp pos q.comma_breakable -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/