るりまサーチ

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

ライブラリ

キーワード

検索結果

<< < ... 6 7 8 >>

CSV#string -> String (3002.0)

StringIO#string に委譲します。

StringIO#string に委譲します。


@see StringIO#string

CSV#tell -> Integer (3002.0)

IO#pos, IO#tell に委譲します。

IO#pos, IO#tell に委譲します。


@see IO#pos, IO#tell

CSV#to_i -> Integer (3002.0)

IO#fileno, IO#to_i に委譲します。

IO#fileno, IO#to_i に委譲します。

CSV#to_io -> self (3002.0)

IO#to_io に委譲します。

IO#to_io に委譲します。


@see IO#to_io

CSV#tty? -> bool (3002.0)

IO#isatty, IO#tty? に委譲します。

IO#isatty, IO#tty? に委譲します。


@see IO#isatty, IO#tty?

絞り込み条件を変える

CSV#write_headers? -> bool (3002.0)

ヘッダを出力先に書き込む場合は真を返します。 そうでない場合は偽を返します。

...st[例][ruby]{
require "csv"

csv
= CSV.new("date1,date2\n2018-07-09,2018-07-10")
csv
.write_headers? # => nil

header = ["header1", "header2"]
row = ["row1_1", "row1_2"]
result = CSV.generate(headers: header, write_headers: false) do |csv|
csv
.write_headers? # => false
csv
<< row
end
result # =>...
..."row1_1,row1_2\n"

result = CSV.generate(headers: header, write_headers: true) do |csv|
csv
.write_headers? # => true
csv
<< row
end
result # => "header1,header2\nrow1_1,row1_2\n"
//}

@see CSV.new...
<< < ... 6 7 8 >>