36件ヒット
[1-36件を表示]
(0.025秒)
クラス
-
REXML
:: AttlistDecl (12) -
REXML
:: Attributes (24)
検索結果
先頭3件
-
REXML
:: AttlistDecl # [](key) -> String | nil (18204.0) -
key という属性名のデフォルト値を返します。
key という属性名のデフォルト値を返します。
key という名前の属性が存在しない、もしくは
デフォルト値を持たない場合は nil を返します。 -
REXML
:: Attributes # [](name) -> String | nil (18204.0) -
属性名nameの属性値を返します。
...ください。
nameという属性名の属性がない場合は nil を返します。
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1... -
REXML
:: Attributes # prefixes -> [String] (110.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
...の配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='......1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p doc.root.attributes.prefixes # => ["foo", "bar"]
p a.attributes.prefixes # => []
//}...