るりまサーチ

最速Rubyリファレンスマニュアル検索!
2117件ヒット [1-100件を表示] (0.021秒)
トップページ > クエリ:attr[x] > クエリ:value[x]

別のキーワード

  1. module attr
  2. _builtin attr
  3. net/imap attr
  4. rdoc attr_modifiers
  5. etc sc_thread_attr_stacksize

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

OpenSSL::X509::Attribute#value -> OpenSSL::ASN1::ASN1Data (21107.0)

attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで 返します。

...attribute の値を OpenSSL::ASN1::ASN1Data のオブジェクトで
返します。

@raise OpenSSL::X509::AttributeError 値の取得に失敗した場合に発生します
@see OpenSSL::X509::Attribute#value=...

REXML::Attribute#value -> String (21101.0)

正規化されていない属性値を返します。

正規化されていない属性値を返します。

属性値の正規化については XML の仕様を参考にしてください。

REXML::Attributes#each_attribute {|attribute| ... } -> () (9230.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='&lt;'/>
</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", "<"]
//}...

OpenSSL::X509::Attribute#value=(val) (9107.0)

attribute の値を設定します。

...attribute の値を設定します。

引数には OpenSSL::ASN1::ASN1Data のオブジェクトを渡さなければなりません。

@param val 設定する値の OpenSSL::ASN1::ASN1Data オブジェクト
@raise OpenSSL::X509::AttributeError val が不正であった場合に発生します
@s...
...ee OpenSSL::X509::Attribute#value...

static VALUE rb_mod_attr(int argc, VALUE *argv, VALUE klass) (6400.0)

絞り込み条件を変える

static VALUE rb_mod_attr_accessor(int argc, VALUE *argv, VALUE klass) (6400.0)

static VALUE rb_mod_attr_reader(int argc, VALUE *argv, VALUE klass) (6400.0)

static VALUE rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass) (6400.0)

REXML::Element#add_attributes(attrs) -> () (6224.0)

要素の属性を複数追加します。 同じ名前の属性がすでにある場合はその属性を新しい 属性で置き換えます。

...

attr
s には Hash もしくは Array を指定できます。
Hash の場合は、
{ "name1" => "value1", "name2" => "value2", ... }
という形で、配列の場合は
[ ["name1", "value1"], ["name2", "value2"], ... }
という形で追加/更新する属性を指定します。

@param attr...
...属性の属性名と属性値の対の集合(Array or Hash)

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("e")
e.add_attributes({"a" => "b", "c" => "d"})
e # => <e a='b' c='d'/>
e = REXML::Element.new("e")
e.add_attributes([["a", "b"], ["c", "d"]])
e # => <e a='b' c='d'/>
//}...
<< 1 2 3 ... > >>