1106件ヒット
[1-100件を表示]
(0.109秒)
ライブラリ
- ビルトイン (834)
- csv (36)
-
fiddle
/ import (12) - matrix (24)
-
net
/ http (24) - rake (24)
-
rexml
/ document (36) - set (18)
- strscan (84)
- thread (14)
クラス
- Array (93)
- 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)
-
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 (72)
モジュール
-
Fiddle
:: Importer (12) -
Rake
:: TaskManager (12)
キーワード
- == (24)
- [] (84)
- arity (24)
- bind (12)
-
bit
_ length (12) - blksize (12)
-
body
_ stream (12) -
body
_ stream= (12) - bsearch (48)
- byterindex (3)
- bytes (12)
- bytesize (12)
- clear (12)
- clone (12)
- close (10)
- deq (12)
-
each
_ grapheme _ cluster (16) -
each
_ index (12) -
enum
_ for (24) - eql? (24)
-
field
_ size _ limit (12) - hash (24)
- length (108)
-
matched
_ size (12) - max (12)
- max= (12)
- minor (24)
- name (12)
- 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件
-
Enumerator
# size -> Integer | Float :: INFINITY | nil (21226.0) -
self の要素数を返します。
...は Float::INFINITY を返します。
Enumerator.new に Proc オブジェクトを指定していた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。
//emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 941094......00
loop.size # => Float::INFINITY
(1..100).drop_while.size # => nil
//}
@see Enumerator.new... -
Integer
# size -> Integer (21220.0) -
整数の実装上のサイズをバイト数で返します。
...整数の実装上のサイズをバイト数で返します。
//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}
@see Integer#bit_length... -
REXML
:: Elements # size -> Integer (21220.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
//}... -
File
:: Stat # size -> Integer (21214.0) -
ファイルサイズ(バイト単位)を返します。
...ファイルサイズ(バイト単位)を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.size #=> 1548
//}... -
Thread
:: Queue # size -> Integer (21208.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
//}... -
MatchData
# size -> Integer (18230.0) -
部分文字列の数を返します(self.to_a.size と同じです)。
...部分文字列の数を返します(self.to_a.size と同じです)。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}... -
CSV
:: Table # size -> Integer (18226.0) -
(ヘッダを除く)行数を返します。
...(ヘッダを除く)行数を返します。
Array#length, Array#size に委譲しています。
//emlist[][ruby]{
require 'csv'
csv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.size # => 1
//}
@see Array#length, Array#size... -
Range
# size -> Integer | Float :: INFINITY | nil (18226.0) -
範囲内の要素数を返します。始端、終端のいずれかのオブジェクトが Numeric のサブクラスのオブジェクトではない場合には nil を返します。
...を返します。始端、終端のいずれかのオブジェクトが
Numeric のサブクラスのオブジェクトではない場合には nil を返します。
//emlist[例][ruby]{
(10..20).size # => 11
("a".."z").size # => nil
(-Float::INFINITY..Float::INFINITY).size # => Infinity
//}... -
String
# size -> Integer (18226.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...