るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 5 > >>

CSV#isatty -> bool (6108.0)

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

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


@
see IO#isatty, IO#tty?...

CSV#path -> String (6108.0)

IO#path に委譲します。

...IO#path に委譲します。


@
see IO#path...

CSV#quote_char -> String (6108.0)

フィールドをクオートするのに使用する文字列を返します。

...フィールドをクオートするのに使用する文字列を返します。

//emlist[例][ruby]{
require "csv"

csv
= CSV.new("header1,header2\nrow1_1,row1_2", quote_char: "'")
csv
.quote_char # => "'"
//}

@
see CSV.new...

CSV#return_headers? -> bool (6108.0)

ヘッダを返す場合は、真を返します。 そうでない場合は、偽を返します。

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

csv
= CSV.new("header1,header2\nrow1_1,row1_2", headers: true, return_headers: false)
csv
.return_headers? # => false
csv
.shift # => #<CSV::Row "header1":"row1_1" "header2":"row1_2">

csv
= CSV.new("header1,header2\nrow1_1,row1_2", headers: true, return_headers: true)
csv
...
....return_headers? # => true
csv
.shift # => #<CSV::Row "header1":"header1" "header2":"header2">
//}

@
see CSV.new...

CSV#shift -> Array | CSV::Row (6108.0)

String や IO をラップしたデータソースから一行だけ読み込んで フィールドの配列か CSV::Row のインスタンスを返します。

...String や IO をラップしたデータソースから一行だけ読み込んで
フィールドの配列か CSV::Row のインスタンスを返します。

データソースは読み込み用にオープンされている必要があります。

@
return ヘッダを使用しない場合は...
...配列を返します。
ヘッダを使用する場合は CSV::Row を返します。

//emlist[例][ruby]{
require "csv"

csv
= CSV.new(DATA.read)
csv
.readline # => ["header1", "header2"]
csv
.readline # => ["row1_1", "row1_2"]

__END__
header1,header2
row1_1,row1_2
//}...

絞り込み条件を変える

CSV#to_io -> self (6108.0)

IO#to_io に委譲します。

...IO#to_io に委譲します。


@
see IO#to_io...

CSV#truncate(path, length) -> 0 (6108.0)

File#truncate に委譲します。

...File#truncate に委譲します。


@
see File#truncate...

CSV#tty? -> bool (6108.0)

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

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


@
see IO#isatty, IO#tty?...

CSV#unconverted_fields? -> bool (6108.0)

パースした結果が unconverted_fields というメソッドを持つ場合に真を返します。 そうでない場合は、偽を返します。

...果が unconverted_fields というメソッドを持つ場合に真を返します。
そうでない場合は、偽を返します。


//emlist[例][ruby]{
require "csv"

csv
= CSV.new("date1,date2\n2018-07-09,2018-07-10")
csv
.unconverted_fields? # => nil
csv
= CSV.new("date1,date2\n2018-07-09,20...
...18-07-10", unconverted_fields: false)
csv
.unconverted_fields? # => false
csv
= CSV.new("date1,date2\n2018-07-09,2018-07-10", headers: true, unconverted_fields: true)
csv
.unconverted_fields? # => true
csv
.convert(:date)
row = csv.readline
row.fields # => [#<Date: 2018-07-09 ((2458309j,0s...
...,0n),+0s,2299161j)>, #<Date: 2018-07-10 ((2458310j,0s,0n),+0s,2299161j)>]
row.unconverted_fields # => ["2018-07-09", "2018-07-10"]
//}

@
see CSV.new...
<< < 1 2 3 4 5 > >>