3011件ヒット
[1-100件を表示]
(0.161秒)
ライブラリ
- English (22)
- ビルトイン (1320)
- csv (55)
- dbm (11)
- gdbm (11)
- getoptlong (11)
- matrix (92)
-
minitest
/ spec (2) -
net
/ http (33) -
net
/ pop (33) - objspace (11)
- openssl (55)
- ostruct (33)
- pathname (66)
- pp (11)
- prime (132)
-
rdoc
/ context (22) - readline (22)
-
rexml
/ document (176) -
rubygems
/ config _ file (11) -
rubygems
/ package / tar _ input (11) -
rubygems
/ source _ index (22) - sdbm (11)
- shell (54)
-
shell
/ builtin-command (36) -
shell
/ command-processor (30) -
shell
/ filter (36) -
shell
/ process-controller (6) -
shell
/ system-command (6) - socket (22)
- stringio (145)
- thread (14)
- tsort (139)
-
webrick
/ httpauth / htdigest (11) -
webrick
/ httpauth / htpasswd (11) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) -
webrick
/ httputils (22) -
win32
/ registry (33) - win32ole (55)
-
yaml
/ dbm (11) - zlib (66)
クラス
-
ARGF
. class (121) - Addrinfo (22)
- Array (74)
- CSV (44)
-
CSV
:: Row (11) - DBM (11)
- Dir (120)
- Enumerator (57)
-
Enumerator
:: ArithmeticSequence (12) -
Enumerator
:: Chain (12) -
Enumerator
:: Lazy (21) - File (22)
- GDBM (11)
-
Gem
:: ConfigFile (11) -
Gem
:: Package :: TarInput (11) -
Gem
:: SourceIndex (22) - GetoptLong (11)
- Hash (89)
- IO (241)
- Integer (22)
- Matrix (92)
-
MiniTest
:: Spec (2) - Module (11)
-
Net
:: POP3 (33) - Object (44)
-
OpenSSL
:: ASN1 :: Constructive (11) -
OpenSSL
:: Config (11) - OpenStruct (33)
- PP (11)
- Pathname (66)
- Prime (44)
-
Prime
:: PseudoPrimeGenerator (66) -
RDoc
:: Context (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Attributes (22) -
REXML
:: Element (33) -
REXML
:: Elements (44) -
REXML
:: Parent (44) -
REXML
:: XPath (11) - Range (11)
- SDBM (11)
- Shell (54)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (36) -
Shell
:: Glob (6) -
Shell
:: ProcessController (6) -
Shell
:: SystemCommand (6) -
Shell
:: Tee (6) -
Shell
:: Void (6) - String (165)
- StringIO (145)
- Struct (22)
- Thread (44)
-
Thread
:: Queue (33) -
Thread
:: SizedQueue (42) -
WEBrick
:: HTTPAuth :: Htdigest (11) -
WEBrick
:: HTTPAuth :: Htpasswd (11) -
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPUtils :: FormData (11) - WIN32OLE (33)
-
WIN32OLE
_ EVENT (11) -
Win32
:: Registry (33) -
YAML
:: DBM (11) -
Zlib
:: GzipReader (66)
モジュール
- Enumerable (138)
- Kernel (22)
-
Net
:: HTTPHeader (33) - ObjectSpace (33)
-
OpenSSL
:: Buffering (33) -
REXML
:: Node (11) - TSort (139)
オブジェクト
- ENV (22)
-
Readline
:: HISTORY (22)
キーワード
-
$ CHILD _ STATUS (11) -
$ LAST _ PAREN _ MATCH (11) - + (6)
- ConditionVariable (11)
- FormData (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
WIN32OLE
_ METHOD (11) - [] (11)
- after (1)
-
alias
_ command (6) - before (1)
- bytes (14)
-
canonical
_ each (11) - cat (18)
- chars (50)
- children (14)
- chunk (11)
-
chunk
_ while (11) - close (9)
- collect (23)
- collect! (12)
-
def
_ system _ command (6) - deq (11)
-
each
_ active _ object (6) -
each
_ attribute (22) -
each
_ byte (99) -
each
_ capitalized (11) -
each
_ capitalized _ name (11) -
each
_ char (88) -
each
_ child (84) -
each
_ classmodule (11) -
each
_ codepoint (88) -
each
_ cons (11) -
each
_ data (11) -
each
_ element (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) -
each
_ entry (11) -
each
_ filename (11) -
each
_ grapheme _ cluster (14) -
each
_ index (44) -
each
_ key (11) -
each
_ line (209) -
each
_ mail (11) -
each
_ object (22) -
each
_ option (11) -
each
_ pair (132) -
each
_ prime (22) -
each
_ recursive (11) -
each
_ slice (22) -
each
_ strongly _ connected _ component (32) -
each
_ strongly _ connected _ component _ from (42) -
each
_ value (11) -
each
_ with _ index (66) -
each
_ with _ object (22) - echo (18)
-
enum
_ for (22) - filter! (12)
- fnmatch (11)
- fnmatch? (11)
- foreach (128)
- glob (18)
-
grapheme
_ clusters (14) - handler= (11)
- inject (11)
-
install
_ system _ commands (6) -
instance
_ method (11) - invert (11)
- join (22)
-
keep
_ if (22) - length (11)
- lines (30)
- map (12)
- map! (12)
-
net
/ imap (11) - new (18)
-
ole
_ func _ methods (11) -
ole
_ get _ methods (11) - optparse (11)
-
os
_ each _ obj (11) - pack (19)
- pack テンプレート文字列 (11)
- parse (22)
- pass (11)
- pop (11)
-
reachable
_ objects _ from (11) -
reverse
_ each (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) - select! (22)
- seplist (11)
- shift (22)
- size (11)
-
slice
_ when (21) -
st
_ foreach (11) -
strongly
_ connected _ components (11) -
take
_ while (22) - tee (18)
-
to
_ a (11) -
to
_ enum (22) -
to
_ h (17) - tsort (11)
-
tsort
_ each (32) -
tsort
_ each _ child (11) -
unalias
_ command (6) - unpack (11)
-
with
_ index (44) -
with
_ object (22)
検索結果
先頭5件
-
Prime
:: PseudoPrimeGenerator # each {|prime| . . . } -> object (30302.0) -
素数を与えられたブロックに渡して評価します。
素数を与えられたブロックに渡して評価します。 -
WEBrick
:: HTTPAuth :: Htdigest # each {|user , realm , pass| . . . } -> Hash (30301.0) -
ユーザ名、レルム、パスワードをブロックに渡して評価します。
ユーザ名、レルム、パスワードをブロックに渡して評価します。 -
WEBrick
:: HTTPAuth :: Htpasswd # each {|user , pass| . . . } -> Hash (30301.0) -
ユーザ名とパスワードをブロックに与えて評価します。
ユーザ名とパスワードをブロックに与えて評価します。 -
Prime
:: PseudoPrimeGenerator # each -> self (30202.0) -
素数を与えられたブロックに渡して評価します。
素数を与えられたブロックに渡して評価します。 -
Prime
:: PseudoPrimeGenerator # each _ with _ index -> Enumerator (27408.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
Prime
:: PseudoPrimeGenerator # each _ with _ index {|prime , index| . . . } -> self (27408.0) -
与えられたブロックに対して、素数を0起点の連番を渡して評価します。
...を返します。 ブロックを与えられなかった場合は Enumerator を返します。
//emlist[例][ruby]{
require 'prime'
Prime::EratosthenesGenerator.new(10).each_with_index do |prime, index|
p [prime, index]
end
# [2, 0]
# [3, 1]
# [5, 2]
# [7, 3]
//}
@see Enumerator#with_index... -
Shell
:: Void # each(rs = nil) { . . . } -> nil (27401.0) -
何もしません。
何もしません。 -
Zlib
:: GzipReader # each(rs = $ / ) {|line| . . . } -> self (27354.0) -
IO クラスの同名メソッドIO#each, IO#each_lineと同じです。
...
IO クラスの同名メソッドIO#each, IO#each_lineと同じです。
但し、gzip ファイル中に
エラーがあった場合 Zlib::Error 例外や
Zlib::GzipFile::Error 例外が発生します。
gzip ファイルのフッターの処理に注意して下さい。
gzip ファイルの......ックサムが
記録されています。GzipReader オブジェクトは、次の時に展開した
データとフッターの照合を行い、エラーがあった場合は
Zlib::GzipFile::NoFooter, Zlib::GzipFile::CRCError,
Zlib::GzipFile::LengthError 例外を発生させます。
* EOF (......受けた時。
すなわち Zlib::GzipReader#read,
Zlib::GzipReader#gets メソッド等が nil を返す時。
* EOF まで読み込んだ後、Zlib::GzipFile#close メソッドが
呼び出された時。
* EOF まで読み込んだ後、Zlib::GzipReader#unused メソッドが... -
Prime
# each(upper _ bound = nil , generator = EratosthenesGenerator . new) -> Enumerator (27350.0) -
全ての素数を順番に与えられたブロックに渡して評価します。
...ブロックに渡して評価します。
@param upper_bound 任意の正の整数を指定します。列挙の上界です。
nil が与えられた場合は無限に列挙し続けます。
@param generator 素数生成器のインスタンスを指定します。
@return......す。
//emlist[例][ruby]{
require 'prime'
Prime.each(6){|prime| prime } # => 5
Prime.each(7){|prime| prime } # => 7
Prime.each(10){|prime| prime } # => 7
Prime.each(11){|prime| prime } # => 11
//}
//emlist[例: 30以下の双子素数][ruby]{
require 'prime'
Prime.each(30).each_cons(2).select{......い数列が発生します。
//emlist[例][ruby]{
require 'prime'
Prime.each(50, Prime::Generator23.new) do |n|
p n #=> [2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 35, 37, 41, 43, 47, 49]
end
//}
@see Prime.each, Prime::EratosthenesGenerator, Prime::TrialDivisionGenerator, Prime::Generator23... -
Prime
# each(upper _ bound = nil , generator = EratosthenesGenerator . new) {|prime| . . . } -> object (27350.0) -
全ての素数を順番に与えられたブロックに渡して評価します。
...ブロックに渡して評価します。
@param upper_bound 任意の正の整数を指定します。列挙の上界です。
nil が与えられた場合は無限に列挙し続けます。
@param generator 素数生成器のインスタンスを指定します。
@return......す。
//emlist[例][ruby]{
require 'prime'
Prime.each(6){|prime| prime } # => 5
Prime.each(7){|prime| prime } # => 7
Prime.each(10){|prime| prime } # => 7
Prime.each(11){|prime| prime } # => 11
//}
//emlist[例: 30以下の双子素数][ruby]{
require 'prime'
Prime.each(30).each_cons(2).select{......い数列が発生します。
//emlist[例][ruby]{
require 'prime'
Prime.each(50, Prime::Generator23.new) do |n|
p n #=> [2, 3, 5, 7, 11, 13, 17, 19, 23, 25, 29, 31, 35, 37, 41, 43, 47, 49]
end
//}
@see Prime.each, Prime::EratosthenesGenerator, Prime::TrialDivisionGenerator, Prime::Generator23...