るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.109秒)
トップページ > バージョン:2.3.0[x] > クエリ:t[x] > クエリ:RI[x] > クエリ:element[x] > クエリ:to_string[x]

別のキーワード

  1. cgi element_init
  2. cgi/html element_init
  3. matrix element
  4. element add_attribute
  5. rss element

ライブラリ

クラス

検索結果

REXML::Attribute#to_string -> String (100240.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'"
//}