341件ヒット
[1-100件を表示]
(0.204秒)
種類
- インスタンスメソッド (231)
- 特異メソッド (55)
- クラス (33)
- 文書 (11)
- ライブラリ (11)
ライブラリ
-
net
/ imap (11) - rake (22)
- rexml (11)
-
rexml
/ document (253) - win32ole (22)
クラス
-
Net
:: IMAP (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (44) -
REXML
:: DocType (11) -
REXML
:: Element (66) -
REXML
:: XPath (33) -
Rake
:: NameSpace (11) -
WIN32OLE
_ VARIANT (11)
モジュール
- Kernel (11)
-
REXML
:: Namespace (77)
キーワード
- Attribute (11)
- Ruby用語集 (11)
- UndefinedNamespaceException (11)
-
WIN32OLE
_ VARIANT (11) -
add
_ namespace (22) - attribute (11)
- capability (11)
- each (22)
-
each
_ attribute (11) - first (11)
-
get
_ attribute _ ns (11) -
has
_ name? (11) -
local
_ name (11) - match (11)
- name (11)
- namespaces (33)
- new (22)
- prefix (11)
- prefix= (11)
-
rake
/ classic _ namespace (11) - whitespace (11)
検索結果
先頭5件
-
REXML
:: Attribute # namespace(arg = nil) -> String | nil (24407.0) -
属性の名前空間の URI を返します。
...RI を返します。
URI が定義されていない場合は nil を返します。
@param arg この値を指定すると、その属性の名前空間でなく、arg という名前空間
の 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"
//}... -
Kernel
# namespace(name = nil) { . . . } -> Rake :: NameSpace (21420.0) -
新しい名前空間を作成します。
...新しい名前空間を作成します。
与えられたブロックを評価する間は、その名前空間を使用します。
例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.
@see Rake::TaskManager#in_namespace... -
REXML
:: Element # namespace(prefix=nil) -> String (21325.0) -
self の文脈で prefix が指している名前空間の URI を返します。
...self の文脈で prefix が指している名前空間の URI を返します。
prefix を省略すると、デフォルトの名前空間の URI を返します。
prefix で指示される名前空間の宣言が存在しない場合は nil を返します。
//emlist[][ruby]{
require 'rexml/......document'
doc = REXML::Document.new("<a xmlns='1' xmlns:y='2'><b/><c xmlns:z='3'/><y:d /></a>")
b = doc.elements['//b']
b.namespace # => "1"
b.namespace("y") # => "2"
b.namespace("z") # => nil
d = doc.elements['//y:d']
d.namespace # => "2"
//}... -
rake
/ classic _ namespace (18000.0) -
このライブラリは古い Rakefile を使用する場合のみ使用してください。
...このライブラリは古い Rakefile を使用する場合のみ使用してください。
以下の定数が定義されます。
* Task = Rake::Task
* FileTask = Rake::FileTask
* FileCreationTask = Rake::FileCreationTask
* RakeApp = Rake::Application... -
REXML
:: UndefinedNamespaceException (15000.0) -
XMLのパース中に、定義されていない名前空間が現れた場合に発生する 例外です。
...XMLのパース中に、定義されていない名前空間が現れた場合に発生する
例外です。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (12429.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......す。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
E......= 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/foo"... -
REXML
:: Attributes # namespaces -> { String => String } (12300.0) -
self の中で宣言されている名前空間の集合を返します。
...elf の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xml......ns: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
# => {}
//}... -
Net
:: IMAP # capability -> [String] (12206.0) -
CAPABILITY コマンドを送ってサーバがサポートしている 機能(capabilities)のリストを文字列の配列として返します。
...APABILITY コマンドを送ってサーバがサポートしている
機能(capabilities)のリストを文字列の配列として返します。
capability は IMAP に関連する RFC などで定義されています。
imap.capability
# => ["IMAP4REV1", "UNSELECT", "IDLE", "NAMESPACE",... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (12206.0) -
各属性に対しブロックを呼び出します。
...は REXML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/r......oot/a").first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Namespace # prefix=(value) (12206.0) -
prefix (前置修飾子) を設定します。
...prefix (前置修飾子) を設定します。
@param value prefix文字列
@see REXML::Namespace#prefix...