4件ヒット
[1-4件を表示]
(0.051秒)
別のキーワード
種類
- インスタンスメソッド (3)
- 特異メソッド (1)
ライブラリ
- ビルトイン (2)
- pathname (1)
-
shell
/ command-processor (1)
クラス
- File (1)
-
File
:: Stat (1) - Pathname (1)
-
Shell
:: CommandProcessor (1)
検索結果
先頭4件
-
Pathname
# size? -> bool (63304.0) -
FileTest.size?(self.to_s) と同じです。
FileTest.size?(self.to_s) と同じです。
@see FileTest.#size? -
File
. size?(path) -> Integer | nil (54601.0) -
FileTest.#size? と同じです。
FileTest.#size? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。 -
File
:: Stat # size? -> Integer | nil (54412.0) -
サイズが0の時にはnil、それ以外の場合はファイルサイズを返します。
サイズが0の時にはnil、それ以外の場合はファイルサイズを返します。
//emlist[][ruby]{
require 'tempfile'
fp = Tempfile.new("temp")
p fp.size #=> 0
p File::Stat.new(fp.path).size? #=> nil
fp.print "not 0 "
fp.close
p FileTest.exist?(fp.path) #=> true
p File::Stat.new(fp.path).size? #=> 6
//} -
Shell
:: CommandProcessor # size?(file) -> Integer | nil (54301.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#size FileTest.#size?