るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.132秒)
トップページ > クエリ:I[x] > クエリ:h[x] > バージョン:3.3[x] > クエリ:get_text[x] > クラス:REXML::Element[x]

別のキーワード

  1. _builtin to_h
  2. struct to_h
  3. hash to_h
  4. ostruct to_h
  5. env to_h

ライブラリ

検索結果

REXML::Element#get_text(path = nil) -> REXML::Text | nil (55225.0)

先頭のテキスト子ノードを返します。

...トノードの文字列を返します。

テキストノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#text

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<p> ....

REXML::Element#text(path = nil) -> String | nil (922.0)

先頭のテキスト子ノードの文字列を返します。

...トノードの文字列を返します。

テキストノードがない場合には nil を返します。

@param path XPath文字列
@see REXML::Element#get_text

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<p>some text <b>this is bold!</b> more text</p>"
# doc.root (<...