32件ヒット
[1-32件を表示]
(0.015秒)
種類
- モジュール関数 (9)
- 特異メソッド (9)
- インスタンスメソッド (9)
- 文書 (5)
モジュール
- FileTest (9)
検索結果
先頭4件
-
Pathname
# zero? -> bool (18107.0) -
FileTest.zero?(self.to_s) と同じです。
...FileTest.zero?(self.to_s) と同じです。
@see FileTest.#zero?
, Pathname#empty?... -
File
. zero?(path) -> bool (18101.0) -
FileTest.#zero? と同じです。
...FileTest.#zero? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
FileTest
. # zero?(file) -> bool (18101.0) -
ファイルが存在して、そのサイズが 0 である時に真を返します。 そうでない場合、あるいはシステムコールに失敗した場合には false を返します。
...された IO オブジェクト file が既に close されていた場合に発生します。
//emlist[例:][ruby]{
IO.write("zero.txt", "")
FileTest.zero?("zero.txt") # => true
IO.write("nonzero.txt", "1")
FileTest.zero?("nonzero.txt") # => false
//}
@see FileTest.#size, FileTest.#size?... -
NEWS for Ruby 3
. 0 . 0 (24.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ead of
a warning.
== Command line options
=== `--help` option
When the environment variable `RUBY_PAGER` or `PAGER` is present and has
a non-empty value, and the standard input and output are tty, the `--help`
option shows the help message via the pager designated by the value.
16754
=== `--......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......s`, `#frozen?`
* `Integer`: `#-@`, `#~`, `#abs`, `#bit_length`, `#even?`, `#integer?`, `#magnitude`, `#odd?`, `#ord`, `#to_i`, `#to_int`, `#zero?`
* `Struct`: reader methods for 10th or later members
* Constant references are inlined.
* Always generate appropriate code for `=...