diff options
author | Kazuhiro NISHIYAMA <[email protected]> | 2020-01-03 01:26:32 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2020-01-03 01:27:25 +0900 |
commit | b884eb59eb22172b5d8af9f33ece093c8f917176 (patch) | |
tree | 8fd8ceff9bd39806848d74bc808f2c452a81a00c /ast.rb | |
parent | db22b368623746ecc21288f23afc435545e5afa4 (diff) |
Fix variable name and add more example [ci skip]
Diffstat (limited to 'ast.rb')
-rw-r--r-- | ast.rb | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -83,8 +83,10 @@ class RubyVM # # root = RubyVM::AbstractSyntaxTree.parse("x = 1 + 2") # root.type # => :SCOPE - # call = root.children[2] - # call.type # => :LASGN + # lasgn = root.children[2] + # lasgn.type # => :LASGN + # call = lasgn.children[1] + # call.type # => :OPCALL def type __builtin_ast_node_type end |