7件ヒット
[1-7件を表示]
(0.084秒)
ライブラリ
- ビルトイン (1)
-
rexml
/ document (4) -
rubygems
/ commands / update _ command (1) -
rubygems
/ specification (1)
クラス
-
Gem
:: Commands :: UpdateCommand (1) -
Gem
:: Specification (1) - MatchData (1)
-
REXML
:: Attribute (1) -
REXML
:: Attributes (2) -
REXML
:: Element (1)
キーワード
- attribute (1)
-
get
_ attribute _ ns (1) - namespace (1)
- namespaces (1)
-
which
_ to _ update (1)
検索結果
先頭5件
- MatchData
# names -> [String] - REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil - Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array - REXML
:: Attribute # namespace(arg = nil) -> String | nil - REXML
:: Attributes # namespaces -> { String => String }
-
MatchData
# names -> [String] (72361.0) -
名前付きキャプチャの名前を文字列配列で返します。
名前付きキャプチャの名前を文字列配列で返します。
self.regexp.names と同じです。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names
# => ["foo", "bar", "baz"]
m = /(?<x>.)(?<y>.)?/.match("a") # => #<MatchData "a" x:"a" y:nil>
m.names # => ["x", "y"]
//} -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (27904.0) -
namespace と name で特定される属性を返します。
namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合でも、このメソッドを
使うことで属性を正しく指定することができます。
@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.ne... -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (27607.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
REXML
:: Attribute # namespace(arg = nil) -> String | nil (27304.0) -
属性の名前空間の URI を返します。
属性の名前空間の URI を返します。
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.... -
REXML
:: Attributes # namespaces -> { String => String } (27304.0) -
self の中で宣言されている名前空間の集合を返します。
self の中で宣言されている名前空間の集合を返します。
返り値は名前空間の prefix をキーとし、URI を値とする
Hash を返します。
//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.ge... -
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (18904.0) -
name で指定される属性を返します。
name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という属性名を持つ属性を指定できます。
指定した属性名の属性がない場合は nil を返します。
@param name 属性名(文字列)
@param namespace 名前空間のURI(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = R... -
Gem
:: Specification # authors=(names) (9307.0) -
作成者の名前の配列をセットします。
作成者の名前の配列をセットします。