44件ヒット
[1-44件を表示]
(0.063秒)
種類
- 特異メソッド (22)
- インスタンスメソッド (11)
- 定数 (11)
ライブラリ
- csv (44)
クラス
- CSV (44)
キーワード
-
DEFAULT
_ OPTIONS (11) - new (11)
- table (11)
検索結果
先頭4件
-
CSV
# header _ converters -> Array (18213.0) -
現在有効なヘッダ用変換器のリストを返します。
...ェクトを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("HEADER1,HEADER2\nrow1_1,row1_2", headers: true, header_converters: CSV::HeaderConverters.keys)
csv.header_converters # => [:downcase, :symbol]
csv.read.to_a # => header2], ["row1_1", "row1_2"
//}
@see CSV.new... -
CSV
. new(data , options = Hash . new) -> CSV (124.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...manually if speed is important. Also
note that IO objects should be opened in binary mode on Windows if this
feature will be used as the line-ending translation can cause
problems with resetting the document position to where it was before the
read ahead. This String will be transcode......が一つだけ
の場合は配列に格納する必要はありません。
全ての組み込みの変換器は、値を変換する前に UTF-8 にエンコーディング変
換を試みます。エンコーディング変換に失敗した場合はフィールドは変換さ
れませ......セットすると、ヘッダを出力します。
: :header_converters
:converters オプションに似ていますが、ヘッダ専用の変換器を定義します。
全ての組み込みの変換器は、値を変換する前に UTF-8 にエンコーディング変
換を試みます... -
CSV
. table(path , options = Hash . new) -> CSV :: Table | [Array] (106.0) -
以下と同等のことを行うメソッドです。
...メソッドです。
//emlist[][ruby]{
CSV.read( path, { headers: true,
converters: :numeric,
header_converters: :symbol }.merge(options) )
//}
@param path ファイル名を指定します。
@param options CSV.new のオプションと同じ... -
CSV
:: DEFAULT _ OPTIONS -> Hash (106.0) -
このオプションは呼び出し側で上書きしなかったときに使用するオプションです。
...るオプションです。
: :col_sep
","
: :row_sep
:auto
: :quote_char
'"'
: :field_size_limit
nil
: :converters
nil
: :unconverted_fields
nil
: :headers
false
: :return_headers
false
: :header_converters
nil
: :skip_blanks
false
: :force_quotes
false
: :skip_lines
nil...