るりまサーチ

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

ライブラリ

キーワード

検索結果

<< < ... 5 6 7 8 > >>

CSV#seek(offset, whence = IO::SEEK_SET) -> 0 (2.0)

IO#seek に委譲します。

IO#seek に委譲します。


@see IO#seek

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

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

...ールドの配列か 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#skip_blanks? -> bool (2.0)

真である場合は、空行を読み飛ばします。

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

csv
= CSV.new("header1,header2\n\nrow1_1,row1_2")
csv
.skip_blanks? # => false
csv
.read # => [["header1", "header2"], [], ["row1_1", "row1_2"]]
csv
= CSV.new("header1,header2\n\nrow1_1,row1_2", skip_blanks: true)
csv
.skip_blanks? # => true
csv
.read # => [["...
...header1", "header2"], ["row1_1", "row1_2"]]
//}

@see CSV.new...

CSV#stat -> File::Stat (2.0)

IO#stat に委譲します。

IO#stat に委譲します。


@see IO#stat

CSV#string -> String (2.0)

StringIO#string に委譲します。

StringIO#string に委譲します。


@see StringIO#string

絞り込み条件を変える

CSV#sync -> bool (2.0)

IO#sync に委譲します。

IO#sync に委譲します。


@see IO#sync

CSV#sync=(newstate) (2.0)

IO#sync= に委譲します。

IO#sync= に委譲します。


@see IO#sync=

CSV#tell -> Integer (2.0)

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

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


@see IO#pos, IO#tell

CSV#to_i -> Integer (2.0)

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

IO#fileno, IO#to_i に委譲します。
<< < ... 5 6 7 8 > >>