るりまサーチ

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

別のキーワード

  1. rexml/document attributes
  2. attributes each
  3. attributes []
  4. attributes new

ライブラリ

クラス

モジュール

検索結果

<< 1 2 > >>

REXML::Attributes#size -> Integer (18107.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
//}...

REXML::Attributes#length -> Integer (3007.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#text_field(name = "", value = nil, size = 40, maxlength = nil) -> String (139.0)

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

...す。

@param size size 属性の値を指定します。

@param maxlength maxlength 属性の値を指定します。

例:
text_field("name")
# <INPUT TYPE="text" NAME="name" SIZE="40">

text_field("name", "value")
# <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="40">

text...
..._field("name", "value", 80)
# <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80">

text_field("name", "value", 80, 200)
# <INPUT TYPE="text" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200">...

CGI::HtmlExtension#file_field(name = "", size = 20, maxlength = nil) -> String (135.0)

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

...定します。

@param size size 属性の値を指定します。

@param maxlength maxlength 属性の値を指定します。

例:
file_field("name")
# <INPUT TYPE="file" NAME="name" SIZE="20">

file_field("name", 40)
# <INPUT TYPE="file" NAME="name" SIZE="40">

file_field("n...
...ame", 40, 100)
# <INPUT TYPE="file" NAME="name" SIZE="40" MAXLENGTH="100">...

CGI::HtmlExtension#password_field(name = "", value = nil, size = 40, maxlength = nil) -> String (133.0)

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

...@param size size 属性の値を指定します。

@param maxlength maxlength 属性の値を指定します。

例:
password_field("name")
# <INPUT TYPE="password" NAME="name" SIZE="40">

password_field("name", "value")
# <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="40">...
...password_field("password", "value", 80, 200)
# <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200">...

絞り込み条件を変える

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

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

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

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

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

CGI::HtmlExtension#popup_menu(attributes) -> String (120.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">
# <OP...

CGI::HtmlExtension#scrolling_list(attributes) -> String (120.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">
# <OP...

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

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

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

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

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