るりまサーチ

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

別のキーワード

  1. cgi text_field
  2. cgi file_field
  3. cgi password_field
  4. cgi/html text_field
  5. cgi/html file_field

ライブラリ

クラス

モジュール

キーワード

検索結果

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

CSV::Row#fields(*headers_and_or_indices) -> Array (6107.0)

与えられた引数に対応する値の配列を返します。

...与えられた引数に対応する値の配列を返します。

要素の探索に CSV::Row#field を使用しています。

@param headers_and_or_indices ヘッダの名前かインデックスか Range
のインスタンスか第 1 要素がヘッダの名前...

Net::HTTPHeader#get_fields(key) -> [String] (6107.0)

key ヘッダフィールドの値 (文字列) を配列で返します。

...ール名を文字列で与えます。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.get_fields('accept-ranges') # => ["none"]
//}

@see Net::HTTPHeader#[] , Net::HTTPHeader#[]=,
Net::HTTPHeader#add_field...

絞り込み条件を変える

OpenStruct#delete_field(name) -> object (6102.0)

nameで指定された要素を削除します。

nameで指定された要素を削除します。

その後その要素を参照したら nil が返ります。

@param name 削除する要素を文字列かシンボルで指定します。
@return 削除前の要素の値を返します。

CSV#unconverted_fields? -> bool (6101.0)

パースした結果が unconverted_fields というメソッドを持つ場合に真を返します。 そうでない場合は、偽を返します。

...ースした結果が unconverted_fields というメソッドを持つ場合に真を返します。
そうでない場合は、偽を返します。


//emlist[例][ruby]{
require "csv"

csv = CSV.new("date1,date2\n2018-07-09,2018-07-10")
csv.unconverted_fields? # => nil
csv = CSV.new("date1,date2...
...\n2018-07-09,2018-07-10", unconverted_fields: false)
csv.unconverted_fields? # => false
csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true, unconverted_fields: true)
csv.unconverted_fields? # => true
csv.convert(:date)
row = csv.readline
row.fields # => [#<Date: 2018-07-0...
...9 ((2458309j,0s,0n),+0s,2299161j)>, #<Date: 2018-07-10 ((2458310j,0s,0n),+0s,2299161j)>]
row.unconverted_fields # => ["2018-07-09", "2018-07-10"]
//}

@see CSV.new...

CSV::FieldInfo#header -> String | nil (3025.0)

利用可能な場合はヘッダを表す文字列を返します。

...//emlist[例][ruby]{
require 'csv'

csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.header
Date.parse(field)
end
p csv.first

# => "date1"
# => "date2"
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)>...

CSV::FieldInfo#index -> Integer (3025.0)

行内で何番目のフィールドかわかるゼロベースのインデックスを返します。

...//emlist[例][ruby]{
require 'csv'

csv = CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true)
csv.convert do |field,field_info|
p field_info.index
Date.parse(field)
end
p csv.first

# => 0
# => 1
# => #<CSV::Row "date1":#<Date: 2018-07-09 ((2458309j,0s,0n),+0s,2299161j)> "date2":#<Dat...
<< < 1 2 3 4 ... > >>