るりまサーチ

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

別のキーワード

  1. string b
  2. _builtin b
  3. b string
  4. b _builtin
  5. b

ライブラリ

クラス

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

URI::LDAP#attributes -> String (24303.0)

自身の Attribute を文字列で返します。

...自身の Attribute を文字列で返します。...

REXML::Attribute#to_string -> String (9215.0)

"name='value'" という形式の文字列を返します。

..."name='value'" という形式の文字列を返します。

//emlist[][ruby]{
require 'rexml/document'
e = REXML::Element.new("el")
e.add_attribute("ns:r", "rval")
p e.attributes.get_attribute("r").to_string # => "ns:r='rval'"
//}...

CGI::HtmlExtension#image_button(attributes) -> String (6424.0)

タイプが image の input 要素を生成します。

...タイプが image の input 要素を生成します。

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

例:
image_button({ "SRC" => "url", "ALT" => "string" })
# <INPUT TYPE="image" SRC="url" ALT="string">...

CGI::HtmlExtension#radio_button(attributes) -> String (6410.0)

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

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

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

例:
radio_button({ "NAME" => "name", "VALUE" => "value", "ID" => "foo" })
# <INPUT TYPE="radio" NAME="name" VALUE="value" ID="foo">...

CGI::HtmlExtension#checkbox(attributes) -> String (6310.0)

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

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

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

例:
checkbox("name" => "name", "value" => "value", "checked" => true)
# => "<INPUT checked name=\"name\" TYPE=\"checkbox\" value=\"value\">"...

絞り込み条件を変える

CGI::HtmlExtension#checkbox_group(attributes) -> String (6310.0)

タイプが checkbox である input 要素のグループを生成します。

...checkbox である input 要素のグループを生成します。

生成される input 要素の name 属性はすべて同じになり、
それぞれの input 要素の後ろにはラベルが続きます。

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

例:
checkbox_group(...
...{ "NAME" => "name",
"VALUES" => ["foo", "bar", "baz"] })

checkbox_group({ "NAME" => "name",
"VALUES" => [["foo"], ["bar", true], "baz"] })

checkbox_group({ "NAME" => "name",
"VALUES" => [["1", "Foo"], ["2", "Bar", true], "Baz"] })...

CGI::HtmlExtension#submit(attributes) -> String (6310.0)

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

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

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

例:
submit({ "VALUE" => "ok", "NAME" => "button1", "ID" => "foo" })
# <INPUT TYPE="submit" VALUE="ok" NAME="button1" ID="foo">...

CGI::HtmlExtension#image_button(src = "", name = nil, alt = nil) -> String (6219.0)

タイプが image の input 要素を生成します。

...の値を指定します。

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

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

例:
image_button("url")
# <INPUT TYPE="image" SRC="url">

image_button("url", "name", "string")
# <INPUT TYPE="image" SRC="url" NAME="name" ALT="string">...

REXML::Attributes#namespaces -> { String => String } (6215.0)

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

...

//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 doc.root.attributes.namespaces
# => {"fo...
...o"=>"http://example.org/foo", "bar"=>"http://example.org/bar"}
p a.attributes.namespaces
# => {}
//}...
<< 1 2 3 ... > >>