mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
da1b14bcec
commit
71345cf1df
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue