るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. _builtin read
  2. stringio read
  3. csv read
  4. io read
  5. tuple read

ライブラリ

検索結果

CSV::Table#empty? -> bool (63436.0)

ヘッダーを除いて、データがないときに true を返します。

ヘッダーを除いて、データがないときに true を返します。

Array#empty? に委譲しています。

//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b\n", headers: true)
table = csv.read
p table.empty? # => true
table << [1, 2]
p table.empty? # => false
//}

@see Array#empty?