るりまサーチ

最速Rubyリファレンスマニュアル検索!
857件ヒット [1-100件を表示] (0.039秒)

別のキーワード

  1. _builtin size
  2. net/imap size
  3. _builtin size?
  4. rexml/document size
  5. set size

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

FileTest.#size(file) -> Integer (18139.0)

ファイルのサイズを返します。

...イルのサイズを返します。

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

@
raise Errno::EXXX file が存在しない場合、あるいはシステムコールに失敗した場合に発生します。

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

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

例:
FileTest.size('/etc/passwd') # => 5925...

Enumerator#size -> Integer | Float::INFINITY | nil (18127.0)

self の要素数を返します。

...いた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。

//emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 94109400
loop.size # => Float::INFINITY
(1..100).drop_while.size # => nil
//}

@
see Enumerator.new...

File#size -> Integer (18127.0)

ファイルのサイズを返します。

...ファイルのサイズを返します。

//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}

@
raise IOError 自身が close されている場合に発生します。

@
raise Errno::EXXX 失敗した場合に発生します。

@
see File#lstat...

File.size(path) -> Integer (18125.0)

FileTest.#size と同じです。

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

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

Integer#size -> Integer (18121.0)

整数の実装上のサイズをバイト数で返します。

...整数の実装上のサイズをバイト数で返します。

//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}

@
see Integer#bit_length...

絞り込み条件を変える

Enumerator::ArithmeticSequence#size -> Integer | nil (18109.0)

有限なら要素数を返します。 そうでなければ nil を返します。

...有限なら要素数を返します。
そうでなければ nil を返します。

@
return 要素数または nil を返します。...

String#size -> Integer (15127.0)

文字列の文字数を返します。バイト数を知りたいときは bytesize メソッドを使ってください。

...いときは bytesize メソッドを使ってください。

//emlist[例][ruby]{
"test".length # => 4
"test".size # => 4
"テスト".length # => 3
"テスト".size # => 3
"\x80\u3042".length # => 2
"\x80\u3042".size # => 2
//}

@
see String#bytesize...

Symbol#size -> Integer (15115.0)

シンボルに対応する文字列の長さを返します。

...シンボルに対応する文字列の長さを返します。

(self.to_s.length と同じです。)

:foo.length #=> 3

@
see String#length, String#size...

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

ファイルのサイズを返します。ファイルが存在しない時や ファイルのサイズが0の時には 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?...

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

FileTest.#size? と同じです。

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>