るりまサーチ

最速Rubyリファレンスマニュアル検索!
373件ヒット [1-100件を表示] (0.098秒)

別のキーワード

  1. _builtin count
  2. array count
  3. enumerable count
  4. rubygems/user_interaction count
  5. matrix row_count

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Array#count -> Integer (18140.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 (18140.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 (18140.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 (18140.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 (18140.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 (18140.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 (18138.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 行として数えてしまうのでダメ
//}...

Sync_m#sync_ex_count=(count) (6219.0)

@todo

...@todo...

MiniTest::Unit#assertion_count=(count) (6215.0)

アサーション数をセットします。

...アサーション数をセットします。

@
param count 件数を指定します。...

MiniTest::Unit#test_count=(count) (6215.0)

テストケース数をセットします。

...テストケース数をセットします。

@
param count 件数を指定します。...

絞り込み条件を変える

Scanf::FormatSpecifier#count_space? (6118.0)

@todo

...@todo...

Scanf::FormatString#matched_count (6118.0)

@todo

...@todo...
<< 1 2 3 ... > >>