377件ヒット
[1-100件を表示]
(0.035秒)
種類
- インスタンスメソッド (264)
- 特異メソッド (66)
- ライブラリ (22)
- 文書 (14)
- クラス (11)
ライブラリ
- openssl (33)
-
rdoc
/ markup (11) -
rexml
/ document (297)
クラス
-
OpenSSL
:: X509 :: Attribute (22) -
RDoc
:: Markup (11) -
REXML
:: Attribute (55) -
REXML
:: Attributes (154) -
REXML
:: DocType (22) -
REXML
:: Element (66)
キーワード
-
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (6) - Request (11)
- [] (11)
- []= (11)
-
add
_ attribute (22) -
add
_ attributes (11) -
attribute
_ of (11) -
attributes
_ of (11) - delete (11)
-
delete
_ all (11) -
delete
_ attribute (11) - each (11)
-
each
_ attribute (11) -
each
_ element _ with _ attribute (11) -
get
_ attribute (11) -
get
_ attribute _ ns (11) - length (11)
- namespace (11)
- namespaces (11)
-
net
/ http (11) - prefix (11)
- prefixes (11)
-
rexml
/ document (11) - size (11)
-
to
_ a (11) -
to
_ string (11)
検索結果
先頭5件
- REXML
:: Attribute . new(attribute , value , parent = nil) -> REXML :: Attribute - REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute - OpenSSL
:: X509 :: Attribute . new(der) -> OpenSSL :: X509 :: Attribute - OpenSSL
:: X509 :: Attribute . new(oid , value) -> OpenSSL :: X509 :: Attribute - REXML
:: Attributes . new(element) -> REXML :: Attributes
-
REXML
:: Attribute . new(attribute , value , parent = nil) -> REXML :: Attribute (21336.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ます。
通常はこのメソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属す... -
REXML
:: Attribute . new(attribute _ to _ clone , parent = nil) -> REXML :: Attribute (21336.0) -
新たな属性オブジェクトを生成します。
...新たな属性オブジェクトを生成します。
2種類の初期化が可能です。
REXML::Attribute オブジェクトを渡した場合は、
属性名とその値がそれから複製されます。
parent で新たに作られる属性オブジェクトが属する
要素が指定で......ます。
通常はこのメソッドは直接は使わず、REXML::Element#add_attribute などを
使うでしょう。
@param attribute_to_clone 複製元の REXML::Attribute オブジェクト
@param attribute 属性名
@param value 属性の値
@param parent 生成される属性が所属す... -
OpenSSL
:: X509 :: Attribute . new(der) -> OpenSSL :: X509 :: Attribute (21250.0) -
attribute オブジェクトを生成します。
...attribute オブジェクトを生成します。
引数が1個で、文字列であるならば、それを DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換して......から
それを attribute オブジェクトに変換します。
引数が2個の場合は、それぞれを attribute の Object ID (識別子)と
値(内容)と見なして attribute オブジェクトを生成します。
この場合、oid は Object ID の文字列、value には
OpenSSL::AS......ブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509::AttributeError attributeオブジェクトの生成に失敗した場合に
発生します。DER 形式文字列が不正であった場合、oid, value... -
OpenSSL
:: X509 :: Attribute . new(oid , value) -> OpenSSL :: X509 :: Attribute (21250.0) -
attribute オブジェクトを生成します。
...attribute オブジェクトを生成します。
引数が1個で、文字列であるならば、それを DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換して......から
それを attribute オブジェクトに変換します。
引数が2個の場合は、それぞれを attribute の Object ID (識別子)と
値(内容)と見なして attribute オブジェクトを生成します。
この場合、oid は Object ID の文字列、value には
OpenSSL::AS......ブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509::AttributeError attributeオブジェクトの生成に失敗した場合に
発生します。DER 形式文字列が不正であった場合、oid, value... -
REXML
:: Attributes . new(element) -> REXML :: Attributes (21207.0) -
空の Attributes オブジェクトを生成します。
...空の Attributes オブジェクトを生成します。
どの要素の属性であるかを element で指定します。
通常は REXML::Element.new によって Attributes オブジェクト
が生成されるため、このメソッドを使う必要はありません。
@param element 属... -
REXML
:: Element # attribute(name , namespace = nil) -> REXML :: Attribute | nil (18238.0) -
name で指定される属性を返します。
...name で指定される属性を返します。
属性は REXML::Attribute オブジェクトの形で返します。
name は "foo:bar" のように prefix を指定することができます。
namespace で名前空間の URI を指定することで、その名前空間内で
name という......nt.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("/root/a").first
a.attribute("att") # => att='<'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("......bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}... -
RDoc
:: Markup . new(attribute _ manager = nil) -> RDoc :: Markup (18208.0) -
自身を初期化します。
...自身を初期化します。
@param attribute_manager Rdoc::AttributeManager オブジェクトを指
定します。... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9232.0) -
namespace と name で特定される属性を返します。
...EXML::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("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://ex......ample.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", "attt") # => nil
//}... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9220.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 fo......o:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/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
:: Attributes # get _ attribute(name) -> Attribute | nil (9220.0) -
name という名前の属性を取得します。
...::Attributes#[]
//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("/root/a").first
a.attributes.get_attribute("......att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}...