るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

CSV#inspect -> String (6102.0)

ASCII 互換文字列で自身の情報を表したものを返します。

...ASCII 互換文字列で自身の情報を表したものを返します。

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

csv
= CSV.new("header1,header2\nrow1_1,row1_2")
csv
.inspect # => "<#CSV io_type:StringIO encoding:UTF-8 lineno:0 col_sep:\",\" row_sep:\"\\n\" quote_char:\"\\\"\">"
//}...

CSV#internal_encoding -> Encoding | nil (6102.0)

IO#internal_encoding に委譲します。

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


@see IO#internal_encoding...

CSV#ioctl(cmd, arg = 0) -> Integer (6102.0)

IO#ioctl に委譲します。

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


@see IO#ioctl...

CSV#isatty -> bool (6102.0)

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

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


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

CSV#path -> String (6102.0)

IO#path に委譲します。

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


@see IO#path...

絞り込み条件を変える

CSV#quote_char -> String (6102.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 (6102.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 (6102.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 (6102.0)

IO#to_io に委譲します。

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


@see IO#to_io...
<< < 1 2 3 4 5 ... > >>