るりまサーチ (Ruby 2.5.0)

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. open3 capture2e
  4. matrix rank_e
  5. matrix det_e

クラス

キーワード

検索結果

REXML::Parent#children -> [REXML::Child] (72610.0)

子ノード列の配列を返します。

子ノード列の配列を返します。

REXML::Element#root_node -> REXML::Document | REXML::Node (18751.0)

self が属する文書のルートノードを返します。

...素が属する文書(REXML::Document) オブジェクトが
返されます。

その要素が属する REXML::Document オブジェクトが存在しない
場合は木構造上のルートノードが返されます。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)...

REXML::Parent#to_a -> [REXML::Child] (18310.0)

子ノード列の配列を返します。

子ノード列の配列を返します。

REXML::Element#root -> REXML::Element (9451.0)

self が属する文書のルート要素を返します。

...self が属する文書のルート要素を返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root>
<children>
<grandchildren />
</children>
</root>
EOS

children = doc.get_elements("/root/children").first
children.name # => "children"
children.root.name...