るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.134秒)
トップページ > クエリ:-[x] > クエリ:r[x] > クエリ:attributes[x] > クエリ:to_string[x]

別のキーワード

  1. rexml/document attributes
  2. attributes to_a
  3. attributes size
  4. attributes delete
  5. attributes length

ライブラリ

クラス

検索結果

REXML::Attribute#to_string -> String (24431.0)

"name='value'" という形式の文字列を返します。

..."name='value'" という形式の文字列を返します。

//emlist[][ruby]{
r
equire 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}...