るりまサーチ (Ruby 2.1.0)

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

別のキーワード

  1. _builtin path
  2. pathname to_path
  3. _builtin absolute_path
  4. _builtin to_path
  5. pstore path

ライブラリ

検索結果

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

REXML::Element#get_text(path = nil) -> REXML::Text | nil (19093.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> ....