るりまサーチ

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

別のキーワード

  1. matrix tr
  2. string tr_s!
  3. string tr_s
  4. html4tr element_init
  5. string tr!

ライブラリ

キーワード

検索結果

REXML::Attribute#to_string -> String (15409.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#namespace(arg = nil) -> String | nil (3202.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/ns"
//}...

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

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

...nt'
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...

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

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

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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