るりまサーチ (Ruby 2.7.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.028秒)
トップページ > バージョン:2.7.0[x] > クエリ:>[x] > クエリ:author[x] > クエリ:attribute_of[x] > ライブラリ:rexml/document[x]

別のキーワード

  1. rss author
  2. rss author=
  3. item author
  4. itembase author
  5. item author=

クラス

検索結果

REXML::DocType#attribute_of(element, attribute) -> String | nil (54700.0)

DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。

...かの場合は nil を返します。

@param element 要素名(文字列)
@param attribute 属性名(文字列)

//emlist[][ruby]{
require 'rexml/document'

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book...