るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.020秒)
トップページ > クエリ:spec[x] > 種類:特異メソッド[x] > バージョン:2.5.0[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. format spec
  2. format spec=
  3. installer spec
  4. oldformat spec
  5. oldformat spec=

クラス

検索結果

REXML::CData.new(text, respect_whitespace = true, parent = nil) -> REXML::CData (310.0)

text をテキストとして持つ CData オブジェクトを生成します。

...字列
@param respect_whitespace 空白を保存するかどうかを決める真偽値
@param parent 親ノード

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root />
EOS
doc.root.add(REXML::CData.new("foo bar baz "))
doc.to_s # => "<root><![CDATA[foo bar baz ]]><...

REXML::Text.new(arg, respect_whitespace = false, parent = nil, raw = nil, entity_filter = nil, illegal = REXML::Text::NEEDS_A_SECOND_CHECK) (310.0)

テキストノードオブジェクトを生成します。

...L::Text.new("<&", false, nil, true).to_s # parse error
//}

//emlist[doctype があり、実体が宣言されている場合][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE root [
<!ENTITY p "foobar publisher">
<!ENTITY % q "q...