1113件ヒット
[1-100件を表示]
(0.103秒)
別のキーワード
ライブラリ
- ビルトイン (841)
- csv (36)
-
fiddle
/ import (12) - matrix (24)
-
net
/ http (24) - rake (24)
-
rexml
/ document (36) - set (18)
- strscan (84)
- thread (14)
クラス
-
ARGF
. class (12) - Array (105)
- CSV (12)
-
CSV
:: Table (24) -
Encoding
:: Converter (24) - Enumerator (12)
- File (24)
-
File
:: Stat (36) - Hash (24)
- Integer (24)
- MatchData (24)
- Matrix (24)
- Method (48)
-
Net
:: HTTPGenericRequest (24) - Object (48)
- Proc (7)
-
REXML
:: Attributes (24) -
REXML
:: Elements (12) -
Rake
:: Application (12) - Random (12)
- Range (36)
-
RubyVM
:: InstructionSequence (12) - Set (24)
- String (223)
- StringScanner (84)
- Struct (36)
-
Thread
:: Queue (24) -
Thread
:: SizedQueue (70) - UnboundMethod (48)
モジュール
-
Fiddle
:: Importer (12) -
Rake
:: TaskManager (12)
キーワード
- << (7)
- == (24)
- [] (84)
- arity (24)
- bind (12)
- binmode (12)
-
bit
_ length (12) - blksize (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
- byterindex (3)
- bytes (12)
- bytesize (12)
- clear (12)
- close (10)
- deq (12)
-
each
_ grapheme _ cluster (16) -
each
_ index (24) -
enum
_ for (24) - eql? (24)
-
field
_ size _ limit (12) - hash (24)
- length (108)
-
matched
_ size (12) - max (12)
- max= (12)
- minor (24)
- pack (21)
- peek (12)
- peep (12)
- pop (12)
-
primitive
_ convert (24) -
rest
_ size (12) - restsize (12)
- rindex (12)
- shift (12)
- size? (12)
- slice (72)
-
synthesize
_ file _ task (12) - terminate (12)
-
to
_ a (12) -
to
_ enum (24) - transpose (12)
- truncate (12)
- unpack (12)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ a -> Array (32149.0) -
self の情報を 14 要素の配列にして返します。
...フォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す......構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出するために使用)
: #label......列から作成していた場合は nil。
: #first_lineno
命令シーケンスの 1 行目の行番号。
: type
命令シーケンスの種別。
:top、:method、:block、:class、:rescue、:ensure、:eval、:main、
:defined_guard のいずれか。
: locals
全ての引数名... -
Range
# size -> Integer | Float :: INFINITY | nil (21238.0) -
範囲内の要素数を返します。
...eError が発生します。
@raise TypeError self がイテレート可能でない場合に発生します。
//emlist[例][ruby]{
(10..20).size # => 11
("a".."z").size # => nil
(1..).size # => Infinity
(-Float::INFINITY..Float::INFINITY).size # => can't iterate from Float (TypeError)... -
Enumerator
# size -> Integer | Float :: INFINITY | nil (21232.0) -
self の要素数を返します。
...ます。
Enumerator.new に Proc オブジェクトを指定していた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。
//emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 94109400
loop.size # => Float::INFI......NITY
(1..100).drop_while.size # => nil
//}
@see Enumerator.new... -
Range
# size -> Integer | Float :: INFINITY | nil (21232.0) -
...を返します。始端、終端のいずれかのオブジェクトが
Numeric のサブクラスのオブジェクトではない場合には nil を返します。
//emlist[例][ruby]{
(10..20).size # => 11
("a".."z").size # => nil
(-Float::INFINITY..Float::INFINITY).size # => Infinity
//}... -
Integer
# size -> Integer (21226.0) -
整数の実装上のサイズをバイト数で返します。
...整数の実装上のサイズをバイト数で返します。
//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}
@see Integer#bit_length... -
REXML
:: Elements # size -> Integer (21226.0) -
保持している要素の個数を返します。
...list[][ruby]{
require 'rexml/document'
doc = REXML::Document.new '<a>sean<b/>elliott<b/>russell<b/></a>'
# doc.root は3つの要素と3つのテキストノードを持つため、6を返す
doc.root.size # => 6
# そのうち要素は3つであるため、以下は3を返す
doc.root.el......ements.size # => 3
//}... -
String
# size -> Integer (18232.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... -
Thread
:: Queue # size -> Integer (18226.0) -
キューの長さを返します。
...キューの長さを返します。
//emlist[例][ruby]{
require 'thread'
q = Queue.new
[:resource1, :resource2, :resource3, nil].each { |r| q.push(r) }
q.length # => 4
//}......キューの長さを返します。
//emlist[例][ruby]{
q = Queue.new
[:resource1, :resource2, :resource3, nil].each { |r| q.push(r) }
q.length # => 4
//}... -
Array
# size -> Integer (18220.0) -
配列の長さを返します。配列が空のときは 0 を返します。
...配列の長さを返します。配列が空のときは 0 を返します。
//emlist[例][ruby]{
p [1, nil, 3, nil].size #=> 4
//}... -
File
# size -> Integer (18220.0) -
ファイルのサイズを返します。
...ファイルのサイズを返します。
//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see File#lstat...