るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. integer >
  5. complex >

検索結果

File::Stat#size? -> Integer | nil (21313.0)

サイズが0の時にはnil、それ以外の場合はファイルサイズを返します。

...は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
//}...

File.size?(path) -> Integer | nil (21300.0)

FileTest.#size? と同じです。

...FileTest.#size? と同じです。

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

FileTest.#size?(file) -> Integer | nil (21300.0)

ファイルのサイズを返します。ファイルが存在しない時や ファイルのサイズが0の時には nil を返します。

...nil を返します。

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

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

//emlist[例][ruby]{
IO.write("testfile", "test")
FileTest.size?(...
..."testfile") # => 4
File.delete("testfile")
FileTest.size?("testfile") # => nil
//}

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

Pathname#size? -> bool (18301.0)

FileTest.size?(self.to_s) と同じです。

...FileTest.size?(self.to_s) と同じです。


@see FileTest.#size?...

Shell#size?(file) -> Integer | nil (18300.0)

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

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

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

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

絞り込み条件を変える

Shell::CommandProcessor#size?(file) -> Integer | nil (18300.0)

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

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

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

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

Shell::Filter#size?(file) -> Integer | nil (18300.0)

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

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

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

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