るりまサーチ

最速Rubyリファレンスマニュアル検索!
24件ヒット [1-24件を表示] (0.129秒)
トップページ > クエリ:t[x] > クエリ:string[x] > 種類:インスタンスメソッド[x] > クエリ:on[x] > クラス:CSV::Table[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

CSV::Table#to_csv(options = Hash.new) -> String (6304.0)

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

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

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

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

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

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

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