るりまサーチ

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

別のキーワード

  1. attribute new
  2. attribute value
  3. rexml/document attribute
  4. element add_attribute
  5. rexml/document add_attribute

ライブラリ

クラス

検索結果

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

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

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

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