るりまサーチ

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

別のキーワード

  1. etc sc_xopen_enh_i18n
  2. rsa n
  3. rsa n=
  4. openssl n
  5. openssl n=

検索結果

<< 1 2 3 ... > >>

Gem::StreamUI::SilentProgressReporter#count -> nil (30202.0)

何もしません。

何もしません。

Array#count -> Integer (27328.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.count{|x|x%2==0} # => 3
//}

@see Enumerable#count...

Array#count {|obj| ... } -> Integer (27328.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.count{|x|x%2==0} # => 3
//}

@see Enumerable#count...

Array#count(item) -> Integer (27328.0)

レシーバの要素数を返します。

...ブロックを評価して真になった要素の個数を
カウントして返します。

@param item カウント対象となる値。

//emlist[例][ruby]{
a
ry = [1, 2, 4, 2.0]
a
ry.count # => 4
a
ry.count(2) # => 2
a
ry.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 行として数えてしまうのでダメ
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>