るりまサーチ

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

別のキーワード

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

キーワード

検索結果

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

REXML::Attribute#to_s -> String (6306.0)

正規化された属性値を返します。

正規化された属性値を返します。

属性値の正規化については XML の仕様を参考にしてください。

REXML::Attribute#xpath -> String (6306.0)

その属性を指定する xpath 文字列を返します。

...その属性を指定する xpath 文字列を返します。

例えば "/foo/bar/@ns:r" という文字列を返します。...

REXML::Attribute#namespace(arg = nil) -> String | nil (3306.0)

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

...します。

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("xmlns:ns", "http://www.example.com/ns")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").prefix # => "ns"
p e.attributes.get_attribute("r").namespace # => "http://www.example.com/...

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

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

...//emlist[][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...

絞り込み条件を変える

REXML::Attribute#value -> String (3306.0)

正規化されていない属性値を返します。

正規化されていない属性値を返します。

属性値の正規化については XML の仕様を参考にしてください。