るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.072秒)
トップページ > クエリ:IO.new[x] > クエリ:>>[x] > クエリ:allocation_sourceline[x] > クエリ:deflate[x] > クエリ:<[x] > クエリ:accept[x] > クラス:REXML::DocType[x]

別のキーワード

  1. _builtin >>
  2. date >>
  3. ipaddr >>
  4. objspace allocation_sourceline
  5. objspace allocation_sourcefile

ライブラリ

検索結果

REXML::DocType#write(output, indent = 0, transitive = false, ie_hack = false) -> () (13.0)

output に DTD を出力します。

...に DTD を出力します。

このメソッドは deprecated です。REXML::Formatter で
出力してください。

@param output 出力先の IO オブジェクト
@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定しな...
...octype = REXML::Document.new(<<EOS).doctype
<
!DOCTYPE books [
<
!ELEMENT book (comment)>
<
!ELEMENT comment (#PCDATA)>
<
!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
<
!ENTITY p "foobar publisher">
<
!ENTITY % q "quzz">
]>
EO...
...S

doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}...