るりまサーチ

最速Rubyリファレンスマニュアル検索!
32件ヒット [1-32件を表示] (0.170秒)
トップページ > クエリ:I[x] > クエリ:A[x] > クエリ:file[x] > クエリ:zero?[x]

別のキーワード

  1. _builtin to_a
  2. matrix to_a
  3. to_a
  4. argf.class to_a
  5. dbm to_a

検索結果

File.zero?(path) -> bool (30200.0)

FileTest.#zero? と同じです。

...
File
Test.#zero? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

File::Stat#zero? -> bool (27113.0)

サイズが0である時に真を返します。

...サイズが0である時に真を返します。

//emlist[][ruby]{
p File::Stat.new($0).zero? #=> false
//}...

Shell::CommandProcessor#zero?(file) -> bool (21307.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

...FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#zero?...

NEWS for Ruby 3.0.0 (498.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...word arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer
subject to autosplatting. This now match...
...with Enumerator::ArithmeticSequence

//emlist[][ruby]{
dirty_data = ['--', 'data1', '--', 'data2', '--', 'data3']
dirty_data[(1..).step(2)] # take each second element
# => ["data1", "data2", "data3"]
//}

* Binding
* Binding#eval when called with one argument will use `"(eval)"` for `__FILE__...
...ent array. 12706
* Now `{ a: 1 }.each(&->(k, v) { })` raises an ArgumentError due to lambda's arity check.
* When writing to STDOUT redirected to a closed pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero? ov...