種類
- インスタンスメソッド (72)
- 特異メソッド (24)
- 文書 (12)
ライブラリ
-
rexml
/ document (36) -
rexml
/ sax2listener (12) - uri (48)
クラス
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
URI
:: LDAP (48)
モジュール
-
REXML
:: SAX2Listener (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - attributes= (12)
- build (24)
-
get
_ attribute _ ns (12) - namespace (12)
- namespaces (12)
-
start
_ element (12)
検索結果
先頭5件
-
URI
:: LDAP # attributes -> String (29101.0) -
自身の Attribute を文字列で返します。
自身の Attribute を文字列で返します。 -
URI
:: LDAP # attributes=(s) (17101.0) -
自身の Attribute を文字列で設定します。
自身の Attribute を文字列で設定します。
@param s 自身の Attribute を文字列で設定します。 -
URI
:: LDAP . build(ary) -> URI :: LDAP (11164.0) -
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。
...引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。
引数の正当性を検査します。
@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extension......は
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions
//}
のいずれかです。
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。
例:
require 'uri'
p URI::LDAP.build(["example.com", "1", "/a", "b", "c", "... -
URI
:: LDAP . build(hash) -> URI :: LDAP (11164.0) -
引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。 引数の正当性を検査します。
...引数で与えられた URI 構成要素から URI::LDAP オブジェクトを生成します。
引数の正当性を検査します。
@param ary 構成要素を表す配列を与えます。要素は次の順です。
//emlist{
[:host, :port, :dn, :attributes, :scope, :filter, :extension......は
//emlist{
:host, :port, :dn, :attributes, :scope, :filter, :extensions
//}
のいずれかです。
@raise URI::InvalidComponentError 各要素が適合しない場合に発生します。
例:
require 'uri'
p URI::LDAP.build(["example.com", "1", "/a", "b", "c", "... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (3030.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='<'
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 } (3018.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='<'/>
</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) -> () (214.0) -
要素が開始されたときに呼び出されるコールバックメソッドです。
...要素が開始されたときに呼び出されるコールバックメソッドです。
@param uri 名前空間のURI文字列が渡されます。対応する名前空間が存在しない場合は
nil が渡されます
@param localname 接頭辞を取り除いた要素名文字列が... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (40.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"
//}... -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (24.0) -
1.6.8から1.8.0への変更点(まとめ) * ((<1.6.8から1.8.0への変更点(まとめ)/インタプリタの変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたクラス/モジュール>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加されたメソッド>)) * ((<1.6.8から1.8.0への変更点(まとめ)/追加された定数>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張されたクラス/メソッド(互換性のある変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/変更されたクラス/メソッド(互換性のない変更)>)) * ((<1.6.8から1.8.0への変更点(まとめ)/文法の変更>)) * ((<1.6.8から1.8.0への変更点(まとめ)/正規表現>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Marshal>)) * ((<1.6.8から1.8.0への変更点(まとめ)/Windows 対応>)) * ((<1.6.8から1.8.0への変更点(まとめ)/廃止された(される予定の)機能>)) * ((<1.6.8から1.8.0への変更点(まとめ)/ライブラリ>)) * ((<1.6.8から1.8.0への変更点(まとめ)/拡張ライブラリAPI>)) * ((<1.6.8から1.8.0への変更点(まとめ)/バグ修正>)) * ((<1.6.8から1.8.0への変更点(まとめ)/サポートプラットフォームの追加>))
...ブラリが追加されました。
: ((<profiler>)) [lib] [new]
追加。((<profile>)) の実体として分離されました。
: ((<open-uri>)) [lib] [new]
追加
: ((<set>)) [lib] [new]
追加
: ((<"net/ftp">)) [new]
メソッド set_socket 追加
: ((<dl>)) [lib] [new]
追......), racc/*
: ((<benchmark>)) [new]
added
: Curses [lib] [compat]
Updated. New methods and constants for using the mouse, character
attributes, colors and key codes have been added.
: Complex#to_i [lib] [obsolete]
: Complex#to_f [lib] [obsolete]
: Complex#to_r......put(), binary(), binary = 追加
: ((<"net/http">)) [compat]
Net::HTTP のクラスメソッドで ((<URI>)) オブジェクトが使えるようになった。
Net::HTTP.get_print(URI.parse('http://www.ruby-lang.org/ja/'))
インスタンスメソッドでは使えないので注意...