380件ヒット
[1-100件を表示]
(0.189秒)
ライブラリ
クラス
- Array (33)
- CSV (11)
-
CSV
:: Table (11) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (22) - Matrix (44)
- Method (11)
-
MiniTest
:: Unit (3) -
Net
:: FTP (11) -
Net
:: POP3 (33) -
Rake
:: FileList (11) -
Resolv
:: DNS (11) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (18) - String (11)
- Thread (11)
- UnboundMethod (11)
モジュール
- Enumerable (55)
- GC (11)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (22) - Observable (11)
キーワード
-
_ assertions= (1) - acct (11)
- arity (22)
-
assertion
_ count (1) -
assertion
_ count= (1) -
auth
_ only (11) -
basic
_ auth (11) -
column
_ count (11) -
column
_ size (11) -
count
_ observers (11) -
count
_ space? (6) - egrep (11)
- failures= (1)
-
garbage
_ collect (11) - inspect (11)
-
matched
_ count (6) - priority (11)
-
proxy
_ basic _ auth (11) - prune (6)
- readlines (11)
-
row
_ count (11) -
row
_ size (11) -
sort
_ by (22) -
spec
_ count (6) - start (22)
- timeouts= (11)
- updated (11)
検索結果
先頭5件
-
Gem
:: StreamUI :: SilentProgressReporter # count -> nil (30202.0) -
何もしません。
何もしません。 -
Array
# count -> Integer (27328.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 (27328.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 (27328.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 (27328.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 (27328.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 (27328.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... -
Gem
:: StreamUI :: SimpleProgressReporter # count -> Integer (27302.0) -
Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。
...Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。... -
Gem
:: StreamUI :: VerboseProgressReporter # count -> Integer (27302.0) -
Gem::StreamUI::VerboseProgressReporter#updated が呼び出された回数を返します。
...Gem::StreamUI::VerboseProgressReporter#updated が呼び出された回数を返します。... -
String
# count(*chars) -> Integer (24486.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
...chars で指定された文字が文字列 self にいくつあるか数えます。
検索する文字を示す引数 chars の形式は tr(1) と同じです。
つまり、「"a-c"」は文字 a から c を意味し、
「"^0-9"」のように文字列の先頭が「^」の場合は
指定文......。
@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 行として数えてしまうのでダメ
//}...