るりまサーチ

最速Rubyリファレンスマニュアル検索!
385件ヒット [101-200件を表示] (0.027秒)
トップページ > クエリ:name[x] > クエリ:Namespace[x]

別のキーワード

  1. _builtin name
  2. resolv each_name
  3. net/imap name
  4. openssl name
  5. win32ole name

検索結果

<< < 1 2 3 4 > >>

REXML::Attribute#namespace(arg = nil) -> String | nil (12207.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::Attributes#namespaces -> { String => String } (12200.0)

self の中で宣言されている名前空間の集合を返します。

...p://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

p doc.root.attributes.namespaces
# => {"foo"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...

REXML::DocType#namespaces -> nil (12200.0)

nil を返します。

nil を返します。

REXML::Element#namespaces -> {String => String} (12200.0)

self の文脈で定義されている名前空間の情報を返します。

...義されている名前空間を、{ prefix => 識別子 }
というハッシュテーブルで返します。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new("<a xmlns:x='1' xmlns:y='2'><b/><c xmlns:z='3'/></a>")
doc.elements['//b'].namespaces # => {"x"=>"1", "y"=>"2"}
//}...

REXML::Namespace#expanded_name -> String (12145.0)

REXML::Namespace#name= で設定された名前を返します。

...REXML::Namespace#name= で設定された名前を返します。

name
= で指定した名前が prefix を含んでいれば
prefix を含む名前を返し、そうでなければ
prefix を含まない名前を返します。

@see REXML::Namespace#prefix...

絞り込み条件を変える

REXML::Namespace#has_name?(other, ns = nil) -> bool (12125.0)

self が other と ns で指定した名前を持っているならば真を返します。

...other が ":" を含んでいる(つまり prefix を含んでいる)場合は
REXML::Namespace#fully_expanded_name と other を比較します。
どちらでもない場合は other と REXML::Namespace#name を直接
比較します。

@param other 比較する名前(文字列)
@param ns 比...

REXML::Namespace#local_name -> String (12102.0)

prefix を含まない「ローカルな」名前を返します。

prefix を含まない「ローカルな」名前を返します。

REXML::Namespace#fully_expanded_name -> String (12101.0)

完全修飾名を返します。

完全修飾名を返します。

REXML::UndefinedNamespaceException (12000.0)

XMLのパース中に、定義されていない名前空間が現れた場合に発生する 例外です。

XMLのパース中に、定義されていない名前空間が現れた場合に発生する
例外です。

Rake::NameSpace (12000.0)

タスクの名前空間を表すクラスです。

タスクの名前空間を表すクラスです。

絞り込み条件を変える

<< < 1 2 3 4 > >>