summaryrefslogtreecommitdiff
path: root/ext/ripper
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-20 02:32:55 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-20 02:32:55 (GMT)
commit71345cf1df3fc3d11277068dc42fe95b66fd7022 (patch)
tree2f500e1929634ed942c682bdb9bfa4b33f1ada12 /ext/ripper
parentda1b14bcec60c607bd1a6a782b44573b1fa14b52 (diff)
fix up r59949
* ext/ripper/lib/ripper/lexer.rb (List#inspect): splat self data to local variables same as members of Elem. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/ripper')
-rw-r--r--ext/ripper/lib/ripper/lexer.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb
index c682c18..b7735fc 100644
--- a/ext/ripper/lib/ripper/lexer.rb
+++ b/ext/ripper/lib/ripper/lexer.rb
@@ -50,10 +50,12 @@ class Ripper
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