713件ヒット
[101-200件を表示]
(0.075秒)
ライブラリ
- ビルトイン (265)
- date (4)
-
irb
/ cmd / help (12) - json (12)
- rake (120)
- resolv (36)
-
rexml
/ document (216) -
rubygems
/ command (12) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ specification (12)
クラス
- Data (3)
- Date (2)
- DateTime (2)
- Encoding (12)
-
Gem
:: Command (12) -
Gem
:: CommandManager (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Specification (12) -
IRB
:: ExtendCommand :: Help (12) - MatchData (26)
- Module (204)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
Rake
:: FileList (12) -
Rake
:: NameSpace (24) -
Rake
:: Task (24) -
Rake
:: TaskArguments (24) - Regexp (12)
- Resolv (12)
-
Resolv
:: DNS (12) -
Resolv
:: Hosts (12) - Struct (6)
- Time (2)
モジュール
- Kernel (36)
-
REXML
:: Namespace (96) -
Rake
:: TaskManager (12)
キーワード
- JSON (12)
- [] (12)
-
add
_ namespace (24) -
arg
_ names (12) - attribute (12)
-
command
_ names (12) -
deconstruct
_ keys (17) -
delete
_ namespace (12) - execute (12)
-
get
_ all _ gem _ names (12) -
get
_ attribute _ ns (12) - getnames (36)
-
has
_ name? (12) - import (12)
-
in
_ namespace (12) - include (12)
-
local
_ name (12) - name (12)
- name= (12)
-
named
_ captures (12) - namespace (36)
- namespaces (36)
-
new
_ scope (12) - prefix (12)
- prefix= (12)
- private (48)
-
private
_ class _ method (24) - protected (48)
- public (48)
-
public
_ class _ method (24) -
ruby2
_ keywords (12) -
set
_ arg _ names (12) - tasks (12)
-
which
_ to _ update (12)
検索結果
先頭5件
-
Rake
:: Task # arg _ names -> Array (6102.0) -
自身のパラメータ名のリストを返します。
自身のパラメータ名のリストを返します。 -
Rake
:: Task # set _ arg _ names(args) (6102.0) -
自身のパラメータの名前のリストをセットします。
自身のパラメータの名前のリストをセットします。
@param args シンボルのリストを指定します。 -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (6101.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 } (6101.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 (6101.0) -
nil を返します。
nil を返します。 -
REXML
:: Element # add _ namespace(prefix , uri) -> self (6101.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) (6101.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 # namespace(prefix=nil) -> String (6101.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
:: Element # namespaces -> {String => String} (6101.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"}
//}...