るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. ipaddr to_i

ライブラリ

クラス

モジュール

キーワード

検索結果

REXML::Attributes#size -> Integer (24201.0)

属性の個数を返します。

...します。


//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("/root/a").first

p a.attributes.length # => 3
//}...

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

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>...

CGI::HtmlExtension#file_field(attributes) -> String (6218.0)

タイプが file である input 要素を生成します。

...タイプが file である input 要素を生成します。

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

例:
file_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40">...

CGI::HtmlExtension#text_field(attributes) -> String (6207.0)

タイプが text である input 要素を生成します。

...タイプが text である input 要素を生成します。

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

text_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="text" NAME="name" VALUE="value">...

CGI::HtmlExtension#password_field(attributes) -> String (6206.0)

タイプが password である input 要素を生成します。

...タイプが password である input 要素を生成します。

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

例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value">...

絞り込み条件を変える

REXML::Attributes#length -> Integer (6101.0)

属性の個数を返します。

...します。


//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("/root/a").first

p a.attributes.length # => 3
//}...

CGI::HtmlExtension#popup_menu(attributes) -> String (3212.0)

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>...