るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer times
  5. integer new

モジュール

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Integer#size -> Integer (39220.0)

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

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

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

@see Integer#bit_length...

Integer#bit_length -> Integer (21113.0)

self を表すのに必要なビット数を返します。

...# => 1
-1.bit_length # => 0
0.bit_length # => 0
1.bit_length # => 1
0xff.bit_length # => 8
0x100.bit_length # => 9
(2**12-1).bit_length # => 12
(2**12).bit_length # => 13
(2**12+1).bit_length # => 13
//}

@see Integer#size...

Pathname#size -> Integer (18224.0)

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

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


@see FileTest.#size...

Enumerator#size -> Integer | Float::INFINITY | nil (18220.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...

Range#size -> Integer | Float::INFINITY | nil (18220.0)

範囲内の要素数を返します。始端、終端のいずれかのオブジェクトが Numeric のサブクラスのオブジェクトではない場合には nil を返します。

...を返します。始端、終端のいずれかのオブジェクトが
Numeric のサブクラスのオブジェクトではない場合には nil を返します。

//emlist[例][ruby]{
(10..20).size # => 11
("a".."z").size # => nil
(-Float::INFINITY..Float::INFINITY).size # => Infinity
//}...

絞り込み条件を変える

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

FileTest.#size と同じです。

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

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

Gem::Package::TarHeader#size -> Integer (18218.0)

tar のヘッダに含まれる size を返します。

...tar のヘッダに含まれる size を返します。...

Shell#size(file) -> Integer (18216.0)

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

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

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

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

Shell::CommandProcessor#size(file) -> Integer (18216.0)

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

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

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

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

Shell::Filter#size(file) -> Integer (18216.0)

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

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

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

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

絞り込み条件を変える

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

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

...しない場合、あるいはシステムコールに失敗した場合に発生します。

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

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

例:
FileTest.size('/etc/passwd') # => 5925...
<< 1 2 3 ... > >>