682件ヒット
[1-100件を表示]
(0.042秒)
別のキーワード
ライブラリ
クラス
- Array (36)
- BasicObject (24)
-
CSV
:: Table (24) -
Gem
:: StreamUI :: VerboseProgressReporter (12) -
MiniTest
:: Unit (5) -
Net
:: FTP (12) -
Net
:: IMAP (24) -
Net
:: POP3 (108) - Proc (7)
-
Rake
:: FileList (12) -
Resolv
:: DNS (12) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (18) - Socket (12)
- String (12)
- Thread (24)
- UnboundMethod (24)
- WIN32OLE (12)
モジュール
- Enumerable (60)
- GC (48)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (24) - ObjectSpace (96)
-
Socket
:: Constants (12) -
Sync
_ m (12) - Timeout (21)
キーワード
- ! (12)
- != (12)
- << (7)
- ConditionVariable (12)
-
SO
_ NREAD (24) -
_ assertions= (1) - acct (12)
-
assertion
_ count= (1) -
auth
_ only (24) -
basic
_ auth (12) -
by
_ col _ or _ row! (12) -
by
_ row! (12) -
count
_ nodes (12) -
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ space? (6) -
count
_ tdata _ objects (12) -
delete
_ all (24) -
each
_ object (48) - egrep (12)
- errors= (1)
- failures= (1)
- foreach (12)
-
garbage
_ collect (12) - inspect (12)
-
matched
_ count (6) -
max
_ flag _ count (12) -
max
_ flag _ count= (12) -
ole
_ reference _ count (12) - priority (12)
- priority= (12)
-
proxy
_ basic _ auth (12) - prune (6)
-
ruby 1
. 6 feature (12) - skips= (1)
-
sort
_ by (24) -
spec
_ count (6) - start (60)
- stat (24)
-
sync
_ ex _ count (6) -
sync
_ ex _ count= (6) -
test
_ count= (1) - timeout (21)
- timeouts= (12)
-
to
_ s (12) - updated (12)
検索結果
先頭5件
-
Array
# count -> Integer (18139.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Array
# count {|obj| . . . } -> Integer (18139.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Array
# count(item) -> Integer (18139.0) -
レシーバの要素数を返します。
...ブロックを評価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
ary = [1, 2, 4, 2.0]
ary.count # => 4
ary.count(2) # => 2
ary.count{|x|x%2==0} # => 3
//}
@see Enumerable#count... -
Enumerable
# count -> Integer (18139.0) -
レシーバの要素数を返します。
...価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}
@see Array#count... -
Enumerable
# count {|obj| . . . } -> Integer (18139.0) -
レシーバの要素数を返します。
...価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}
@see Array#count... -
Enumerable
# count(item) -> Integer (18139.0) -
レシーバの要素数を返します。
...価して真になった要素の個数を
カウントして返します。
@param item カウント対象となる値。
//emlist[例][ruby]{
enum = [1, 2, 4, 2].each
enum.count # => 4
enum.count(2) # => 2
enum.count{|x|x%2==0} # => 3
//}
@see Array#count... -
String
# count(*chars) -> Integer (18137.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
...す。
@param chars 出現回数を数える文字のパターン
//emlist[例][ruby]{
p 'abcdefg'.count('c') # => 1
p '123456789'.count('2378') # => 4
p '123456789'.count('2-8', '^4-6') # => 4
# ファイルの行数を数える
n_lines = File.read("foo").count("\n")......# ファイルの末尾に改行コードがない場合にも対処する
buf = File.read("foo")
n_lines = buf.count("\n")
n_lines += 1 if /[^\n]\z/ =~ buf
# if /\n\z/ !~ buf だと空ファイルを 1 行として数えてしまうのでダメ
//}... -
Net
:: IMAP . max _ flag _ count=(count) (6226.0) -
サーバからのレスポンスに含まれる flag の上限を設定します。
...す。
これを越えた flag がレスポンスに含まれている場合は、
Net::IMAP::FlagCountError 例外が発生します。
デフォルトは 10000 です。通常は変える必要はないでしょう。
@param count 設定する最大値の整数
@see Net::IMAP.max_flag_count... -
Sync
_ m # sync _ ex _ count=(count) (6218.0) -
@todo
...@todo...