別のキーワード
ライブラリ
クラス
- Array (33)
- BasicObject (22)
- CGI (11)
- CSV (22)
-
CSV
:: Table (55) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (22) - Matrix (44)
- Method (11)
-
MiniTest
:: Unit (7) -
Net
:: FTP (11) -
Net
:: IMAP (22) -
Net
:: POP3 (99) - Proc (6)
-
Rake
:: FileList (11) -
Resolv
:: DNS (11) -
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (18) - Socket (11)
- String (11)
- Thread (22)
- UnboundMethod (33)
- WIN32OLE (11)
モジュール
- Enumerable (55)
- Etc (11)
- GC (55)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (22) - ObjectSpace (88)
- Observable (11)
-
Socket
:: Constants (11) -
Sync
_ m (12) - Timeout (19)
キーワード
- ! (11)
- != (11)
- << (6)
- ConditionVariable (11)
- FlagCountError (11)
-
MAX
_ MULTIPART _ COUNT (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
SC
_ 2 _ PBS _ ACCOUNTING (11) -
SO
_ NREAD (22) -
_ assertions= (1) - acct (11)
- arity (22)
-
assertion
_ count (1) -
assertion
_ count= (1) -
auth
_ only (22) -
basic
_ auth (11) -
by
_ col _ or _ row (11) -
by
_ col _ or _ row! (11) -
by
_ row (11) -
by
_ row! (11) -
column
_ count (11) -
column
_ size (11) -
count
_ nodes (11) -
count
_ objects (11) -
count
_ objects _ size (11) -
count
_ observers (11) -
count
_ space? (6) -
count
_ tdata _ objects (11) -
delete
_ all (22) -
each
_ object (44) - egrep (11)
- errors= (1)
- failures= (1)
- foreach (11)
-
garbage
_ collect (11) - inspect (22)
-
matched
_ count (6) -
max
_ flag _ count (11) -
max
_ flag _ count= (11) -
ole
_ reference _ count (11) - priority (11)
- priority= (11)
-
proxy
_ basic _ auth (11) - prune (6)
- read (11)
- readlines (11)
-
row
_ count (11) -
row
_ size (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 5 feature (11) -
rubygems
/ commands / dependency _ command (11) -
rubygems
/ commands / fetch _ command (11) -
rubygems
/ commands / install _ command (11) -
rubygems
/ commands / list _ command (11) -
rubygems
/ commands / outdated _ command (11) -
rubygems
/ commands / query _ command (11) -
rubygems
/ commands / search _ command (11) -
rubygems
/ commands / specification _ command (11) - skips= (1)
-
sort
_ by (22) -
spec
_ count (6) - start (55)
- stat (22)
-
sync
_ ex _ count (6) -
sync
_ ex _ count= (6) -
test
_ count (1) -
test
_ count= (1) - timeout (19)
- timeouts= (11)
-
to
_ s (11) - updated (11)
検索結果
先頭5件
-
String
# count(*chars) -> Integer (18131.0) -
chars で指定された文字が文字列 self にいくつあるか数えます。
...文字のパターン
//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 行として数えてしまうのでダメ
//}... -
Array
# count -> Integer (18127.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 (18127.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 (18127.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 (18127.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 (18127.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 (18127.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... -
GC
. count -> Integer (18107.0) -
プロセス開始からガーベージコレクトを実行した回数を Integer で返し ます。
...プロセス開始からガーベージコレクトを実行した回数を Integer で返し
ます。
//emlist[例][ruby]{
GC.count # => 3
//}... -
Gem
:: StreamUI :: SilentProgressReporter # count -> nil (18101.0) -
何もしません。
何もしません。 -
Gem
:: StreamUI :: SimpleProgressReporter # count -> Integer (18101.0) -
Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。
Gem::StreamUI::SimpleProgressReporter#updated が呼び出された回数を返します。