るりまサーチ

最速Rubyリファレンスマニュアル検索!
66件ヒット [1-66件を表示] (0.118秒)

別のキーワード

  1. uri build
  2. uri extract
  3. uri new
  4. open-uri open
  5. uri regexp

ライブラリ

クラス

モジュール

キーワード

検索結果

URI::LDAP#attributes -> String (29102.0)

自身の Attribute を文字列で返します。

自身の Attribute を文字列で返します。

URI::LDAP#attributes=(s) (17102.0)

自身の Attribute を文字列で設定します。

自身の Attribute を文字列で設定します。

@param s 自身の Attribute を文字列で設定します。

REXML::Attributes#get_attribute_ns(namespace, name) -> REXML::Attribute | nil (3031.0)

namespace と name で特定される属性を返します。

...まった場合でも、このメソッドを
使うことで属性を正しく指定することができます。

@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://e...
...a = doc.get_elements("/root/a").first

a.attributes.get_attribute_ns("", "att") # => att='&lt;'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/fo...

REXML::Attributes#namespaces -> { String => String } (3019.0)

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

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

返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。

//emlist[][ruby]{
require 'rexml/document'

doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xm...
...lns: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::SAX2Listener#start_element(uri, localname, qname, attributes) -> () (215.0)

要素が開始されたときに呼び出されるコールバックメソッドです。

...要素が開始されたときに呼び出されるコールバックメソッドです。

@param uri 名前空間のURI文字列が渡されます。対応する名前空間が存在しない場合は
nil が渡されます
@param localname 接頭辞を取り除いた要素名文字列が...

絞り込み条件を変える

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

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

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

URI
が定義されていない場合は nil を返します。

@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
URI が返されます。
通常は省略します。

//emlis...
...t[][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"
//}...