12件ヒット
[1-12件を表示]
(0.229秒)
ライブラリ
- ビルトイン (12)
検索結果
先頭2件
-
RubyVM
:: AbstractSyntaxTree :: Node # type -> Symbol (26108.0) -
self の種類を Symbol で返します。
...self の種類を Symbol で返します。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 1')
p node.type # => :SCOPE
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (8007.0) -
self の子ノードを配列で返します。
...ノードの type によって異なります。
戻り値は、ほかの RubyVM::AbstractSyntaxTree::Node のインスタンスや nil を含みます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.children
# => [[], nil, #<RubyVM::AbstractSyntaxTree::Node:OPCALL@1:0...