1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[DOC] Update output of Ripper.sexp [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2019-09-07 13:49:47 +09:00
parent 8bfc46a9a3
commit f223ab47e6
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -25,7 +25,7 @@ class Ripper
# #=> [:program,
# [[:def,
# [:@ident, "m", [1, 4]],
# [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil, nil]],
# [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil, nil, nil, nil]],
# [:bodystmt, [[:var_ref, [:@kw, "nil", [1, 9]]]], nil, nil, nil]]]]
#
def Ripper.sexp(src, filename = '-', lineno = 1)