495件ヒット
[1-100件を表示]
(0.093秒)
ライブラリ
- ビルトイン (223)
- csv (84)
- matrix (48)
-
minitest
/ unit (2) -
net
/ ftp (12) -
net
/ http (24) -
net
/ pop (36) - observer (12)
-
rubygems
/ user _ interaction (48) - sync (6)
クラス
- Array (36)
- BasicObject (24)
- CSV (24)
-
CSV
:: Table (60) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (24) - Matrix (48)
- Method (12)
-
MiniTest
:: Unit (2) -
Net
:: FTP (12) -
Net
:: POP3 (36) - Proc (7)
- String (12)
- Thread (24)
- UnboundMethod (36)
モジュール
- Enumerable (60)
- GC (12)
-
Net
:: HTTPHeader (24) - Observable (12)
-
Sync
_ m (6)
キーワード
- ! (12)
- != (12)
- << (7)
- acct (12)
- arity (24)
-
assertion
_ count (1) -
auth
_ only (12) -
basic
_ auth (12) -
by
_ col _ or _ row (12) -
by
_ col _ or _ row! (12) -
by
_ row (12) -
by
_ row! (12) -
column
_ count (12) -
column
_ size (12) -
count
_ observers (12) -
garbage
_ collect (12) - inspect (24)
- priority (12)
- priority= (12)
-
proxy
_ basic _ auth (12) - read (12)
- readlines (12)
-
row
_ count (12) -
row
_ size (12) -
sort
_ by (24) - start (24)
-
sync
_ ex _ count (6) -
test
_ count (1) -
to
_ s (12) - updated (12)
検索結果
先頭5件
-
String
# count(*chars) -> Integer (18256.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
...す引数 chars の形式は tr(1) と同じです。
つまり、「"a-c"」は文字 a から c を意味し、
「"^0-9"」のように文字列の先頭が「^」の場合は
指定文字以外を意味します。
文字「-」は文字列の両端にない場合にだけ範囲指定の意味......になります。
同様に、「^」も文字列の先頭にあるときだけ否定の効果を発揮します。
また、「-」「^」「\」は
バックスラッシュ (「\」) によりエスケープできます。
引数を複数指定した場合は、
すべての引数にマッチし......文字のパターン
//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")
# ファイルの末尾に改行コードがな... -
Array
# count -> Integer (18228.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 (18228.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 (18228.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 (18228.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 (18228.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 (18228.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 :: SilentProgressReporter # count -> nil (18202.0) -
何もしません。
何もしません。 -
Gem
:: StreamUI :: SimpleProgressReporter # count -> Integer (18202.0) -
Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。
Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。