857件ヒット
[1-100件を表示]
(0.039秒)
種類
- インスタンスメソッド (592)
- 特異メソッド (193)
- モジュール関数 (52)
- クラス (20)
クラス
-
ARGF
. class (11) - Array (96)
-
Encoding
:: Converter (22) - Enumerator (29)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Lazy (11) - File (55)
-
File
:: Stat (11) - Integer (22)
- Method (22)
- Object (44)
- Proc (6)
- Random (26)
- Range (22)
-
RubyVM
:: InstructionSequence (22) - String (211)
- Struct (11)
- Symbol (22)
-
Thread
:: SizedQueue (81) - UnboundMethod (22)
モジュール
- FileTest (41)
-
GC
:: Profiler (33) - Kernel (11)
キーワード
- << (15)
- == (22)
- ArgumentError (11)
- ConditionVariable (9)
- [] (77)
- binmode (11)
-
bit
_ length (11) - bsearch (44)
- byterindex (2)
- bytes (17)
- bytesize (11)
- close (9)
- deq (9)
- disasm (11)
- disassemble (11)
-
each
_ grapheme _ cluster (14) -
each
_ index (22) - empty? (8)
- enq (9)
-
enum
_ for (22) - eql? (22)
- length (22)
- max= (9)
- new (90)
- pack (19)
- pop (9)
-
primitive
_ convert (22) - push (9)
-
raw
_ data (11) -
raw
_ seed (2) - report (11)
- require (11)
- result (11)
- rindex (11)
- shift (9)
- size? (22)
- slice (66)
-
to
_ enum (22) - truncate (22)
- unpack (11)
- urandom (7)
- zero? (11)
検索結果
先頭5件
-
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 オブジェクトを指定します。...