るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.146秒)
トップページ > クエリ:String[x] > 種類:インスタンスメソッド[x] > クエリ:string[x] > クエリ:ref[x] > クエリ:a[x] > クラス:REXML::Attribute[x]

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

ライブラリ

検索結果

REXML::Attribute#prefix -> String (9328.0)

属性の名前空間を返します。

...XML::Element.new( "elns:myelement" )
e.add_attribute( "nsa:a", "aval" )
e.add_attribute( "b", "bval" )
p e.attributes.get_attribute( "a" ).prefix # -> "nsa"
p e.attributes.get_attribute( "b" ).prefix # -> "elns"
a
= REXML::Attribute.new( "x", "y" )
p a.prefix #...