るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.077秒)
トップページ > クエリ:-[x] > クエリ:y[x] > クラス:REXML::Attribute[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

キーワード

検索結果

REXML::Attribute#node_type -> Symbol (6201.0)

「:attribute」というシンボルを返します。

「:attribute」というシンボルを返します。

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

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

...st[][ruby]{
require 'rexml/document'
e = REXML::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 # -> ""
//}...