るりまサーチ

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

別のキーワード

  1. _builtin to_r
  2. open3 pipeline_r
  3. matrix elements_to_r
  4. fileutils rm_r
  5. bigdecimal to_r

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

CSV::Table#to_s(options = Hash.new) -> String (3107.0)

CSV の文字列に変換して返します。

...オプションに :write_headers =>
false を指定するとヘッダを出力しません。

//emlist[][ruby]{
r
equire 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.to_csv # => "a,b,c\n1,2,3\n"
p table.to_csv(write_headers: false) # => "1,2,3\n"...
<< < 1 2 >>