るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.125秒)
トップページ > 種類:インスタンスメソッド[x] > バージョン:2.5.0[x] > クエリ:string[x] > クエリ:ext[x] > クラス:REXML::Element[x]

別のキーワード

  1. string []=
  2. string []
  3. string slice
  4. string slice!
  5. string gsub

ライブラリ

検索結果

REXML::Element#text(path = nil) -> String | nil (18610.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 (<...