532件ヒット
[1-100件を表示]
(0.066秒)
種類
- インスタンスメソッド (404)
- 特異メソッド (62)
- 定数 (33)
- モジュール関数 (22)
- クラス (11)
クラス
- Array (41)
-
Encoding
:: Converter (22) - Enumerator (29)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) - File (33)
-
File
:: Stat (33) - Hash (22)
- Integer (22)
- MatchData (22)
- Method (22)
- Range (11)
- String (57)
- Struct (33)
- Symbol (22)
-
Thread
:: Queue (18) -
Thread
:: SizedQueue (23) - UnboundMethod (22)
オブジェクト
- ENV (22)
キーワード
-
INTERNAL
_ CONSTANTS (11) - Numeric (11)
-
RLIMIT
_ FSIZE (11) -
RLIMIT
_ SBSIZE (11) - [] (11)
- arity (22)
-
bit
_ length (11) - blksize (11)
- byterindex (2)
- bytesize (11)
- hash (22)
- length (93)
- max (9)
- new (18)
- pack (19)
-
primitive
_ convert (22) - rindex (11)
- size? (33)
- unpack (11)
検索結果
先頭5件
-
Integer
# size -> Integer (39222.0) -
整数の実装上のサイズをバイト数で返します。
...整数の実装上のサイズをバイト数で返します。
//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}
@see Integer#bit_length... -
Integer
# bit _ length -> Integer (21115.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... -
Enumerator
# size -> Integer | Float :: INFINITY | nil (18222.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 (18222.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 (18220.0) -
FileTest.#size と同じです。
...FileTest.#size と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
FileTest
. # size(file) -> Integer (18216.0) -
ファイルのサイズを返します。
...しない場合、あるいはシステムコールに失敗した場合に発生します。
@raise IOError 指定された IO オブジェクト file が既に close されていた場合に発生します。
@see FileTest.#size?, FileTest.#zero?
例:
FileTest.size('/etc/passwd') # => 5925... -
File
# size -> Integer (18210.0) -
ファイルのサイズを返します。
...ファイルのサイズを返します。
//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see File#lstat... -
File
:: Stat # size -> Integer (18210.0) -
ファイルサイズ(バイト単位)を返します。
...ファイルサイズ(バイト単位)を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.size #=> 1548
//}... -
Thread
:: SizedQueue # size -> Integer (18205.0) -
キューの長さを返します。
キューの長さを返します。 -
Enumerator
:: ArithmeticSequence # size -> Integer | nil (18204.0) -
有限なら要素数を返します。 そうでなければ nil を返します。
有限なら要素数を返します。
そうでなければ nil を返します。
@return 要素数または nil を返します。