るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.094秒)
トップページ > クエリ:IO[x] > クエリ:-[x] > クエリ:v[x] > クエリ:DEFAULT_OPTIONS[x]

別のキーワード

  1. socket ipv6_v6only
  2. socket ai_v4mapped
  3. socket ai_v4mapped_cfg
  4. _builtin grep_v
  5. etc cs_v6_env

種類

ライブラリ

クラス

検索結果

CSV::DEFAULT_OPTIONS -> Hash (27301.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...

CSV.new(data, options = Hash.new) -> CSV (3352.0)

このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。

...このメソッドは CSV ファイルを読み込んだり、書き出したりするために
String か IO のインスタンスをラップします。

ラップされた文字列の先頭から読み込むことになります。
文字列に追記したい場合は CSV.generate を使用し...
...ly 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 ca...
...<-EOS
id|first name|last name|age
1|taro|tanaka|20
2|jiro|suzuki|18
3|ami|sato|19
4|yumi|adachi|21
EOS

csv = CSV.new(users, headers: true, col_sep: "|")
p csv.class # => CSV
p csv.first # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20">
//}

@see CSV::DEFAULT_OPTIONS, CSV...