るりまサーチ (Ruby 2.7.0)

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

別のキーワード

  1. _builtin attr
  2. module attr
  3. net/imap attr
  4. rdoc attr_modifiers
  5. etc sc_thread_attr_stacksize

クラス

検索結果

REXML::DocType#attributes_of(element) -> [REXML::Attribute] (91318.0)

DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。

...、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。

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

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