11件ヒット
[1-11件を表示]
(0.070秒)
ライブラリ
-
rexml
/ document (11)
クラス
-
REXML
:: DocType (11)
検索結果
-
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (18219.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}...