るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file chmod
  4. file size
  5. file ctime

検索結果

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

FileTest.#zero? と同じです。

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

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

FileTest.#zero?(file) -> bool (21213.0)

ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。

...ます。

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。

//emlist[例:][ruby]{
IO.write("zero.txt", "")
File
Test.zero?("zero.txt")...
...# => true
IO.write("nonzero.txt", "1")
File
Test.zero?("nonzero.txt") # => false
//}

@see FileTest.#size, FileTest.#size?...

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

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

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

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

FileTest.#zero?(file) -> bool (18214.0)

ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。

...ます。

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。

//emlist[例:][ruby]{
IO.write("zero.txt", "")
File
Test.zero?("zero.txt")...
...# => true
IO.write("nonzero.txt", "1")
File
Test.zero?("nonzero.txt") # => false
//}

@see FileTest.#size, FileTest.#size?...

Shell#zero?(file) -> bool (18207.0)

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

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

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

@see FileTest.#zero?...

絞り込み条件を変える

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

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

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

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

@see FileTest.#zero?...

Shell::Filter#zero?(file) -> bool (18207.0)

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

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

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

@see FileTest.#zero?...

NEWS for Ruby 3.0.0 (30.0)

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

...e each second element
# => ["data1", "data2", "data3"]
//}

* Binding
* Binding#eval when called with one argument will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352 17419
* ConditionVariable
* ConditionVariable#wait may now invoke the `block`/`unblock`...
..., and will return a frozen copy even if the receiver is unfrozen. 16175
* Kernel#eval when called with two arguments will use `"(eval)"` for `__FILE__` and `1` for `__LINE__` in the evaluated code. 4352
* Kernel#lambda now warns if called without a literal block. 15973
* Kernel.sleep inv...
...osed pipe, no broken pipe error message will be shown now. 14413
* `TRUE`/`FALSE`/`NIL` constants are no longer defined.
* Integer#zero? overrides Numeric#zero? for optimization. 16961
* Enumerable#grep and Enumerable#grep_v when passed a Regexp and no block no longer modify Regexp.last_matc...