るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.115秒)

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

Psych::TreeBuilder#root -> Psych::Nodes::Stream (30320.0)

AST の root を返します。

...AST root を返します。

@see Psych::Nodes::Stream...

Psych::Nodes::Document#root -> Psych::Nodes::Node (30304.0)

ルートノードを返します。

ルートノードを返します。

Psych::Nodes::Node#tag -> String | nil (6227.0)

ノードに付加されたタグを返します。

...されていない場合は nil を返します。

ast = Psych.parse(<<EOS)
---
- !!str a
- b
EOS

p ast.root.children[0].value # => "a"
p ast.root.children[0].tag # => "tag:yaml.org,2002:str"

p ast.root.children[1].value # => "b"
p ast.root.children[1].tag # => nil...