るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n=
  3. rsa n
  4. openssl n
  5. openssl n=

検索結果

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

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

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

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

AST の root を返します。

...AST の root を返します。

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

Psych::Nodes::Node#tag -> String | nil (6127.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...