2件ヒット
[1-2件を表示]
(0.077秒)
ライブラリ
- json (1)
-
rexml
/ document (1)
クラス
-
JSON
:: State (1) -
REXML
:: Attributes (1)
検索結果
-
JSON
:: State # []=(name , value) (63304.0) -
Set the attribute name to value.
Set the attribute name to value. -
REXML
:: Attributes # []=(name , value) (63304.0) -
指定した属性を更新します。
指定した属性を更新します。
name で属性の名前を、value で値を更新します。
既に同じ名前の属性がある場合は上書きされ、
そうでない場合は属性が追加されます。
//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>
EO...