33件ヒット
[1-33件を表示]
(0.100秒)
別のキーワード
検索結果
-
CSV
:: Converters -> Hash (24331.0) -
このハッシュは名前でアクセスできる組み込みの変換器を保持しています。
...このハッシュは名前でアクセスできる組み込みの変換器を保持しています。
CSV#convert で使用する変換器として使用できます。
また CSV.new のオプションとして使用することもできます。
: :integer
Kernel.#Integer を使用してフ......す。
: :date_time
DateTime.parse を使用してフィールドを変換します。
: :all
:date_time と :numeric の組み合わせです。
全ての組み込みの変換器は、実際に変換する前にフィールドのデータの
文字エンコーディングを UTF-8 に変換し......ます。そのデータの文字エンコーディング
を UTF-8 に変換出来なかった場合は、変換には失敗しますが、データは変更されません。
このハッシュは Object#freeze されていないので、ユーザは自由に値を
追加することが出来ま... -
CSV
. new(data , options = Hash . new) -> CSV (18474.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...ンスタンスを指定した場合、CSV#string を使用して
後からデータを取り出すことが出来ます。
@param options CSV をパースするためのオプションをハッシュで指定します。
パフォーマンス上の理由でインスタ......If none of those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::STDERR, or the stream is only available for output, the default
$INPUT_RECORD_SEPARATOR ($/) is used. Obviously,
discovery takes a little time. Set 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 transcoded into the data's Encoding before parsing.
:... -
CSV
# converters -> Array (12343.0) -
現在の変換器のリストを返します。
...在の変換器のリストを返します。
//emlist[例][ruby]{
require "csv"
csv = CSV.new("header1,header2\nrow1_1,row1_2", converters: CSV::Converters.keys)
csv.converters # => [:integer, :float, :integer, :float, :date, :date_time, :date_time, :integer, :float]
//}
@see CSV::Converters...