るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.073秒)
トップページ > クエリ:-[x] > クエリ:converters[x] > 種類:特異メソッド[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

ライブラリ

クラス

キーワード

検索結果

CSV.new(data, options = Hash.new) -> CSV (143.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...
...o +nil+, or off,
by default.
: :converters
CSV::Converters から取り出した名前の配列です。変換器が一つだけ
の場合は配列に格納する必要はありません。
全ての組み込みの変換器は、値を変換する前に UTF-8 にエンコーディング変...
...ットすると、ヘッダを出力します。
: :header_converters
:converters オプションに似ていますが、ヘッダ専用の変換器を定義します。
全ての組み込みの変換器は、値を変換する前に UTF-8 にエンコーディング変
換を試みます。...

CSV.table(path, options = Hash.new) -> CSV::Table | [Array] (113.0)

以下と同等のことを行うメソッドです。

...同等のことを行うメソッドです。

//emlist[][ruby]{
CSV.read( path, { headers: true,
converters
: :numeric,
header_converters: :symbol }.merge(options) )
//}

@param path ファイル名を指定します。

@param options CSV.new の...