るりまサーチ

最速Rubyリファレンスマニュアル検索!
684件ヒット [1-100件を表示] (0.092秒)

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call?

検索結果

<< 1 2 3 ... > >>

RDoc::Context#attributes -> [RDoc::Attr] (21218.0)

追加された RDoc::Attr の配列を返します。

...追加された RDoc::Attr の配列を返します。...

WEBrick::HTTPRequest#attributes -> Hash (21102.0)

@todo ???

@todo ???

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

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

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

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

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

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

...'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">
]>
EOS

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::Attributes#namespaces -> { String => String } (9119.0)

self の中で宣言されている名前空間の集合を返します。

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

p doc.root.attributes.namespaces
# => {"foo"=>"http://ex...
...ample.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...

絞り込み条件を変える

REXML::Attributes#each_attribute {|attribute| ... } -> () (9113.0)

各属性に対しブロックを呼び出します。

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

a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name,...

REXML::Attributes#each {|name, value| ... } -> () (9107.0)

各属性の名前と値に対しブロックを呼び出します。

...name(REXML::Namespace#exapnded_name)が
渡されます。

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

a.attributes.each do |name, value|
p [name, value]
end

# => ["foo:att", "1"]
# => ["bar:att", "2"]
# => ["att", "<"]
//}...

REXML::StreamListener#attlistdecl(element_name, attributes, raw_content) -> () (6214.0)

DTDの属性リスト宣言をパースしたときに呼び出されるコールバックです。

...要素名が文字列で渡されます
@param attributes 属性名とそのデフォルト値の対応が
{ 属性名文字列 => デフォルト値文字列(無ければnil) } という
ハッシュテーブルで渡されます
@param raw_content 文書内の属性リスト宣言の文...
...まま渡されます

=== 例
<!ATTLIST a att CDATA #REQUIRED xyz CDATA "foobar">
という属性リスト宣言に対しては
element_name: "a"
attributes
: {"att"=>nil, "xyz"=>"foobar"}
raw_content: " \n<!ATTLIST a att CDATA #REQUIRED xyz CDATA \"foobar\">"
という引数が渡されま...

CGI::HtmlExtension#scrolling_list(attributes) -> String (6209.0)

select 要素を生成します。

...select 要素を生成します。

@param attributes 属性をハッシュで指定します。

例:
popup_menu({"NAME" => "name", "SIZE" => 2, "MULTIPLE" => true,
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })
# <SELECT NAME="name" MULTIPLE SIZE="2...
...">
# <OPTION VALUE="1">Foo</OPTION>
# <OPTION SELECTED VALUE="2">Bar</OPTION>
# <OPTION VALUE="Baz">Baz</OPTION>
# </SELECT>...
<< 1 2 3 ... > >>