るりまサーチ

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

別のキーワード

  1. matrix l
  2. kernel $-l
  3. _builtin $-l
  4. lupdecomposition l
  5. l matrix

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

Gem::Specification.attribute_alias_singular(singular, plural) -> () (12200.0)

既に存在する複数形の属性の単数形バージョンを定義します。

...うに定義すると
attr
ibute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'

@param singular 属性名の単数形を指定します。

@param plural 属性名の複数...

Gem::Specification.attribute_defaults -> Array (12200.0)

@todo

...@todo

@@attributes の複製を返します。...

OpenSSL::X509::Request#add_attribute(attr) -> OpenSSL::X509::Attribute (9407.0)

新たな attribute を CSR に追加します。

...新たな attribute を CSR に追加します。

@param attr 追加する attribute(OpenSSL::X509::Attribute の
インスタンス)
@return 渡した attribute オブジェクトを返します
@see OpenSSL::X509::Request#attribute,
OpenSSL::X509::Request#attribute=...

REXML::Attributes#delete(attribute) -> REXML::Element (9312.0)

指定した属性を取り除きます。

...

attr
ibute で取り除く属性を指定します。
文字列もしくは REXML::Attribute オブジェクトを指定します

self が属する要素(REXML::Element)を返します。

@param attribute 取り除く属性(文字列もしくは REXML::Attribute オブジェクト)

//emlist[]...
...exml/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='&lt;'/>
</root>
EOS
a = doc.get_elements("/root/a").first

a.attributes.delete("att") # => <a foo:att='1' bar:att='2'/>
a.attribu...
...tes.delete("foo:att") # => <a bar:att='2'/>
attr
= a.attributes.get_attribute("bar:att")
a.attributes.delete(attr) # => <a/>
//}...

OpenSSL::X509::Request#attributes -> [OpenSSL::X509::Attribute] (9300.0)

CSR が保持している attribute を OpenSSL::X509::Attribute の配列で返します。

... attribute を OpenSSL::X509::Attribute
の配列で返します。

attr
ibute とは X.509 証明書署名要求 に含まれる申請者に関する
追加的な情報です。必須ではありません。X.509v3 拡張領域を
CSR に含めるときは "reqExt" という oid の attribute...
...を追加
します。

@see OpenSSL::X509::Request#attribute=,
OpenSSL::X509::Request#add_attribute...

絞り込み条件を変える

REXML::DocType#attribute_of(element, attribute) -> String | nil (9300.0)

DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。

...D 内の属性リスト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。

elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣...
...かの場合は nil を返します。

@param element 要素名(文字列)
@param attribute 属性名(文字列)

//emlist[][ruby]{
require 'rexml/document'

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book...
...title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS

p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => nil
//}...

REXML::DocType#attributes_of(element) -> [REXML::Attribute] (9300.0)

DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。

...宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。

名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現...
...す。

//emlist[][ruby]{
require 'rexml/document'

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
E...
...OS

p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_of("book")[0].value # => ""
//}...

REXML::Element#attribute(name, namespace = nil) -> REXML::Attribute | nil (9300.0)

name で指定される属性を返します。

...name で指定される属性を返します。

属性は REXML::Attribute オブジェクトの形で返します。

name は "foo:bar" のように prefix を指定することができます。

namespace で名前空間の URI を指定することで、その名前空間内で
name という...
...il を返します。

@param name 属性名(文字列)
@param namespace 名前空間のURI(文字列)
//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='&l...
...t;'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attribute("att") # => att='&lt;'
a.attribute("att", "http://example.org/bar") # => bar:att='2'
a.attribute("bar:att") # => bar:att='2'
a.attribute("baz") # => nil
//}...

REXML::Element#attributes -> REXML::Attributes (9300.0)

要素が保持している属性の集合を返します。

要素が保持している属性の集合を返します。

Module#attr_accessor(*name) -> [Symbol] (9213.0)

インスタンス変数 name に対する読み取りメソッドと書き込みメソッドの両方を 定義します。

...す。

//emlist[例][ruby]{
class User
attr
_accessor :name # => [:name, :name=]
# 複数の名前を渡すこともできる
attr
_accessor :id, :age # => [:id, :id=, :age, :age=]
end
//}

このメソッドで定義されるメソッドの定義は以下の通りです。

//emlist[例][ruby]...
...{
def name
@name
end
def name=(val)
@name = val
end
//}

@param name String または Symbol を 1 つ以上指定します。
@return 定義されたメソッド名を Symbol の配列で返します。...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>