763件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (274)
-
cgi
/ html (60) -
fiddle
/ import (12) - forwardable (48)
- logger (1)
- matrix (132)
-
net
/ ftp (92) -
net
/ imap (24) - pathname (24)
- rake (12)
-
rexml
/ document (24) - strscan (36)
- zlib (24)
クラス
- Array (45)
-
Encoding
:: Converter (24) - Enumerator (12)
-
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Chain (7) - File (12)
-
File
:: Stat (36) -
Logger
:: Application (1) - MatchData (24)
- Matrix (96)
-
Net
:: FTP (92) -
Net
:: IMAP (12) -
Net
:: IMAP :: FetchData (12) - Object (48)
- Pathname (24)
-
REXML
:: Attributes (24) -
Rake
:: Application (12) - Range (24)
- String (35)
- StringScanner (36)
- Vector (36)
-
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (60) -
Fiddle
:: Importer (12) - Forwardable (24)
- SingleForwardable (24)
キーワード
- + (24)
- - (24)
- attr (12)
- bind (12)
- blksize (12)
- bsearch (24)
- byterindex (3)
-
column
_ count (12) -
column
_ size (12) -
def
_ delegators (24) -
def
_ instance _ delegators (12) -
def
_ single _ delegators (12) - each2 (12)
-
each
_ grapheme _ cluster (8) -
each
_ index (12) -
enum
_ for (24) - fetch (12)
-
file
_ field (12) - get (12)
- getbinaryfile (12)
- length (24)
-
matched
_ size (12) - matchedsize (12)
- minor (24)
- mlsd (20)
- pack (21)
-
password
_ field (12) -
primitive
_ convert (24) - put (12)
- putbinaryfile (12)
- retrbinary (12)
- rindex (12)
-
row
_ count (12) -
row
_ size (12) -
scrolling
_ list (12) -
set
_ dictionary (24) -
set
_ log (1) - size? (24)
- storbinary (12)
- terminate (12)
-
text
_ field (12) -
to
_ enum (24) - truncate (12)
- unpack (12)
検索結果
先頭5件
-
Enumerator
# size -> Integer | Float :: INFINITY | nil (21220.0) -
self の要素数を返します。
...合は Float::INFINITY を返します。
Enumerator.new に Proc オブジェクトを指定していた場合はその
実行結果を返します。呼び出した時に要素数が不明であった場合は nil を返し
ます。
//emlist[例][ruby]{
(1..100).to_a.permutation(4).size # => 941......09400
loop.size # => Float::INFINITY
(1..100).drop_while.size # => nil
//}
@see Enumerator.new... -
Enumerator
:: Chain # size -> Integer | Float :: INFINITY | nil (21202.0) -
合計の要素数を返します。
...合計の要素数を返します。
それぞれの列挙可能なオブジェクトのサイズの合計値を返します。
ただし、列挙可能なオブジェクトが1つでも nil か Float::INFINITY
を返した場合、それを合計の要素数として返します。... -
MatchData
# size -> Integer (21124.0) -
部分文字列の数を返します(self.to_a.size と同じです)。
...部分文字列の数を返します(self.to_a.size と同じです)。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}... -
Pathname
# size -> Integer (21124.0) -
FileTest.size(self.to_s) と同じです。
...FileTest.size(self.to_s) と同じです。
@see FileTest.#size... -
File
:: Stat # size -> Integer (21108.0) -
ファイルサイズ(バイト単位)を返します。
...ファイルサイズ(バイト単位)を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.size #=> 1548
//}... -
Enumerator
:: ArithmeticSequence # size -> Integer | nil (21102.0) -
有限なら要素数を返します。 そうでなければ nil を返します。
有限なら要素数を返します。
そうでなければ nil を返します。
@return 要素数または nil を返します。 -
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
//}... -
REXML
:: Attributes # size -> Integer (18102.0) -
属性の個数を返します。
...ます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}... -
StringScanner
# matchedsize -> Integer | nil (12229.0) -
StringScanner#matched_size と同じです。
...StringScanner#matched_size と同じです。
このメソッドは は将来のバージョンで削除される予定です。
代わりに StringScanner#matched_size を使ってください。
@see StringScanner#matched_size... -
StringScanner
# matched _ size -> Integer | nil (12226.0) -
前回マッチした部分文字列の長さを返します。 前回マッチに失敗していたら nil を返します。
...)
s.matched_size
end
p run("UTF-8") #=> 3
p run("EUC-JP") #=> 2
p run("Shift_Jis") #=> 2
//}
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new('test string')
s.matched_size # => nil
s.scan(/\w+/) # => "test"
s.matched_size # => 4
s.scan(/\w+/) # => nil
s.matched_size # => n...