別のキーワード
ライブラリ
-
net
/ imap (11) - rake (66)
- rexml (11)
-
rexml
/ document (286) - win32ole (22)
クラス
-
Net
:: IMAP (11) -
REXML
:: Attribute (11) -
REXML
:: Attributes (44) -
REXML
:: DocType (11) -
REXML
:: Element (77) -
REXML
:: XPath (33) -
Rake
:: NameSpace (33) -
WIN32OLE
_ VARIANT (11)
モジュール
- Kernel (11)
-
REXML
:: Namespace (88) -
Rake
:: TaskManager (11)
キーワード
- Attribute (11)
- NameSpace (11)
- Namespace (11)
- Ruby用語集 (11)
- UndefinedNamespaceException (11)
-
WIN32OLE
_ VARIANT (11) - [] (11)
-
add
_ namespace (22) - attribute (11)
- capability (11)
-
delete
_ namespace (11) - each (22)
-
each
_ attribute (11) - first (11)
-
get
_ attribute _ ns (11) -
has
_ name? (11) -
in
_ namespace (11) -
local
_ name (11) - match (11)
- name (11)
- name= (11)
- namespaces (33)
- new (22)
- prefix (11)
- prefix= (11)
- rake (11)
-
rake
/ classic _ namespace (11) -
ruby 1
. 8 . 4 feature (11) - tasks (11)
- whitespace (11)
検索結果
先頭5件
-
Kernel
# namespace(name = nil) { . . . } -> Rake :: NameSpace (18220.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 (18125.0) -
self の文脈で prefix が指している名前空間の URI を返します。
...ます。
//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"
//}... -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (18107.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
:: Element # delete _ namespace(namespace = "xmlns") -> self (6220.0) -
名前空間を要素から削除します。
...を削除します。
@param namespace 削除する名前空間の prefix
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
doc.root.delete_namespace
doc.to_s # => "<a xmlns:foo='bar'/>"
doc.root.delete_namespace 'foo'
doc.to_s # => "<a/>"... -
REXML
:: Element # add _ namespace(prefix , uri) -> self (6132.0) -
名前空間を要素に追加します。
...ォルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo"......, "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}... -
REXML
:: Element # add _ namespace(uri) (6132.0) -
名前空間を要素に追加します。
...ォルトの namespace の uri を指定します。
既に同じ prefix が存在する場合はそれが上書きされます。
@param prefix 名前空間の prefix
@param uri 名前空間の uri
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new("a")
a.add_namespace("xmlns:foo"......, "bar" )
a.add_namespace("foo", "bar") # 上と同じ意味
a.add_namespace("twiddle")
a.to_s # => "<a xmlns:foo='bar' xmlns='twiddle'/>"
a.add_namespace("foo", "baz")
a.to_s # => "<a xmlns:foo='baz' xmlns='twiddle'/>"
//}... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (6113.0) -
与えられた名前の名前空間でブロックを評価します。
...ます。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "hoge"
end
end
//}... -
REXML
:: Attributes # namespaces -> { String => String } (6100.0) -
self の中で宣言されている名前空間の集合を返します。
...p://example.org/foo"
xmlns: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
:: DocType # namespaces -> nil (6100.0) -
nil を返します。
nil を返します。 -
REXML
:: Element # namespaces -> {String => String} (6100.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"}
//}...