ライブラリ
- ビルトイン (2341)
- csv (84)
- dbm (60)
- gdbm (60)
- getoptlong (24)
- matrix (244)
-
net
/ http (96) -
net
/ pop (132) -
net
/ smtp (36) - openssl (60)
- ostruct (24)
- pathname (75)
- pp (12)
- prime (96)
- psych (24)
- rake (12)
-
rdoc
/ context (48) - resolv (84)
-
rexml
/ document (204) -
rexml
/ parsers / pullparser (12) -
rinda
/ tuplespace (12) -
rubygems
/ config _ file (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ package / tar _ reader (36) -
rubygems
/ source _ index (24) - sdbm (72)
- set (45)
- shell (18)
-
shell
/ builtin-command (36) -
shell
/ command-processor (30) -
shell
/ filter (24) -
shell
/ system-command (12) - socket (12)
- stringio (169)
- thread (14)
- tsort (105)
- un (12)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httputils (12) -
win32
/ registry (36) - win32ole (108)
-
yaml
/ dbm (36) - zlib (72)
クラス
-
ARGF
. class (264) - Array (213)
- BasicSocket (12)
- CSV (24)
-
CSV
:: Row (24) -
CSV
:: Table (36) - DBM (60)
- Dir (38)
- Enumerator (127)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (165) -
Enumerator
:: Yielder (30) - GDBM (60)
-
Gem
:: ConfigFile (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: Package :: TarReader (36) -
Gem
:: SourceIndex (24) - GetoptLong (24)
- Hash (170)
- IO (300)
- Matrix (196)
- Module (36)
-
Net
:: POP3 (24) -
Net
:: POPMail (108) -
Net
:: SMTP (36) - Object (60)
-
OpenSSL
:: ASN1 :: Constructive (12) -
OpenSSL
:: Config (12) - OpenStruct (24)
- PP (12)
- Pathname (75)
- Prime (24)
-
Prime
:: PseudoPrimeGenerator (72) -
Psych
:: Nodes :: Node (24) -
RDoc
:: Context (48) -
REXML
:: AttlistDecl (12) -
REXML
:: Attributes (24) -
REXML
:: Element (36) -
REXML
:: Elements (48) -
REXML
:: Parent (72) -
REXML
:: Parsers :: PullParser (12) -
Rake
:: TaskArguments (12) - Range (28)
- Resolv (24)
-
Resolv
:: DNS (36) -
Resolv
:: Hosts (24) -
Rinda
:: TupleSpace (12) - SDBM (72)
- Set (60)
- Shell (18)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (24) -
Shell
:: Glob (6) -
Shell
:: SystemCommand (12) -
Shell
:: Tee (6) -
Shell
:: Void (6) - StopIteration (12)
- String (230)
- StringIO (169)
- Struct (48)
- Thread (24)
-
Thread
:: Queue (58) -
Thread
:: SizedQueue (46) - Vector (48)
-
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (12) - WIN32OLE (48)
-
WIN32OLE
_ PARAM (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ VARIABLE (24) -
Win32
:: Registry (36) -
YAML
:: DBM (36) -
Zlib
:: GzipReader (72)
モジュール
- Enumerable (463)
- Kernel (12)
-
Net
:: HTTPHeader (96) -
OpenSSL
:: Buffering (36) -
REXML
:: Node (12) - TSort (105)
キーワード
- + (7)
- << (12)
- [] (12)
- all (36)
-
append
_ features (12) - bytes (35)
-
canonical
_ each (12) - cat (18)
- chars (66)
- chmod (12)
- chunk (36)
-
chunk
_ while (12) - clear (12)
- close (10)
- closed? (10)
- codepoints (66)
- collect (36)
- collect! (38)
-
collect
_ concat (12) - count (36)
- default (12)
-
default
_ event _ sources (12) -
delete
_ if (24) - deq (24)
- difference (12)
- each2 (24)
-
each
_ address (36) -
each
_ attribute (24) -
each
_ byte (132) -
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ char (96) -
each
_ child (62) -
each
_ classmodule (12) -
each
_ codepoint (96) -
each
_ cons (24) -
each
_ constant (12) -
each
_ data (12) -
each
_ element (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (51) -
each
_ filename (12) -
each
_ grapheme _ cluster (16) -
each
_ header (12) -
each
_ index (48) -
each
_ key (84) -
each
_ line (228) -
each
_ mail (12) -
each
_ method (12) -
each
_ name (48) -
each
_ option (12) -
each
_ pair (120) -
each
_ recursive (12) -
each
_ resource (12) -
each
_ slice (24) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) -
each
_ value (96) -
each
_ with _ index (72) -
each
_ with _ object (24) - echo (18)
- entries (12)
-
enum
_ for (48) -
extend
_ object (12) - filter! (14)
-
find
_ index (36) - first (12)
-
flat
_ map (12) -
force
_ quotes? (12) - foreach (18)
- glob (6)
-
grapheme
_ clusters (16) - index (36)
- inject (48)
-
inplace
_ mode (12) -
instance
_ method (12) - intersection (12)
- invert (12)
-
keep
_ if (24) - lines (116)
- mail (36)
- map (24)
- map! (38)
- next (12)
-
next
_ values (12) - notify (12)
-
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ query _ interface (12) -
ole
_ type (12) - pack (21)
-
peek
_ values (12) - pop (60)
- push (24)
- recvmsg (12)
- reduce (36)
- reject! (24)
- replace (48)
-
respond
_ to? (12) - result (12)
-
reverse
_ each (52) - rewind (12)
- select! (24)
-
send
_ mail (12) - sendmail (12)
- seplist (12)
- shift (24)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) -
strongly
_ connected _ components (12) - subtract (12)
- sum (36)
-
super
_ each (6) -
take
_ while (24) - tee (6)
-
to
_ a (24) -
to
_ enum (48) -
to
_ h (19) -
to
_ proc (6) -
tsort
_ each (23) -
tsort
_ each _ child (12) -
tsort
_ each _ node (12) - unpack (12)
- update (12)
- upto (12)
- value (24)
- variables (12)
-
with
_ index (36) -
with
_ object (24) - yield (12)
- zip (48)
検索結果
先頭5件
-
Enumerator
:: Chain # each(*args) -> Enumerator (27225.0) -
まず最初の繰り返し可能なオブジェクトの each メソッドを args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト も同様に呼び出します。
...まず最初の繰り返し可能なオブジェクトの each メソッドを
args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト
も同様に呼び出します。
ブロックが渡されない場合は Enumerator を返します。... -
Enumerator
:: Chain # each(*args) { |*args| . . . } -> object (27225.0) -
まず最初の繰り返し可能なオブジェクトの each メソッドを args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト も同様に呼び出します。
...まず最初の繰り返し可能なオブジェクトの each メソッドを
args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト
も同様に呼び出します。
ブロックが渡されない場合は Enumerator を返します。... -
Psych
:: Nodes :: Node # each -> Enumerator (27209.0) -
self のノードをルートとする部分木の各ノードを引数として ブロックを呼び出します。
self のノードをルートとする部分木の各ノードを引数として
ブロックを呼び出します。
ブロックを省略した場合は Enumerator を返します。 -
Psych
:: Nodes :: Node # each {|node| . . . } -> () (27209.0) -
self のノードをルートとする部分木の各ノードを引数として ブロックを呼び出します。
self のノードをルートとする部分木の各ノードを引数として
ブロックを呼び出します。
ブロックを省略した場合は Enumerator を返します。 -
Shell
:: Echo # each(rs = nil) {|str| . . . } (27202.0) -
@todo
@todo -
Matrix
# each(which = :all) -> Enumerator (24339.0) -
行列の各要素を引数としてブロックを呼び出します。
...行列の各要素を引数としてブロックを呼び出します。
0行目、1行目、…という順番で処理します。
which に以下の Symbol を指定することで
引数として使われる要素を限定することができます。
* :all - すべての要素(デフォ......* :strict_lower 対角成分の下側
* :strict_upper 対角成分の上側
ブロックを省略した場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each { |e| puts e }
# => prints the numbers 1 to 4
Matrix[ [1,2], [3,4] ].each(:strict_lower......).to_a # => [3]
//}
@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each_with_index, Matrix#map... -
Matrix
# each(which = :all) {|e| . . . } -> self (24339.0) -
行列の各要素を引数としてブロックを呼び出します。
...行列の各要素を引数としてブロックを呼び出します。
0行目、1行目、…という順番で処理します。
which に以下の Symbol を指定することで
引数として使われる要素を限定することができます。
* :all - すべての要素(デフォ......* :strict_lower 対角成分の下側
* :strict_upper 対角成分の上側
ブロックを省略した場合、 Enumerator を返します。
//emlist[例][ruby]{
require 'matrix'
Matrix[ [1,2], [3,4] ].each { |e| puts e }
# => prints the numbers 1 to 4
Matrix[ [1,2], [3,4] ].each(:strict_lower......).to_a # => [3]
//}
@param which どの要素に対してブロックを呼び出すのかを Symbol で指定します
@see Matrix#each_with_index, Matrix#map... -
IO
# each(limit , chomp: false) -> Enumerator (24337.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
@raise IOError 自身が読み込み用に......: 引数なし][ruby]{
IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//e......e three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlist[例: chomp = true][ruby]{
IO.write("testfile", "This is... -
IO
# each(limit , chomp: false) {|line| . . . } -> self (24337.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
@raise IOError 自身が読み込み用に......: 引数なし][ruby]{
IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//e......e three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlist[例: chomp = true][ruby]{
IO.write("testfile", "This is... -
IO
# each(rs = $ / , chomp: false) -> Enumerator (24337.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
@raise IOError 自身が読み込み用に......: 引数なし][ruby]{
IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//e......e three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlist[例: chomp = true][ruby]{
IO.write("testfile", "This is... -
IO
# each(rs = $ / , chomp: false) {|line| . . . } -> self (24337.0) -
IO の現在位置から 1 行ずつ文字列として読み込み、それを引数として 与えられたブロックを実行します。
...定すると連続する改行を行の区切りとみなします(パラグラフモード)。
@param limit 最大の読み込みバイト数
@param chomp true を指定すると各行の末尾から "\n", "\r", または "\r\n" を取り除きます。
@raise IOError 自身が読み込み用に......: 引数なし][ruby]{
IO.write("testfile", "This is line one,\nThis is line two,\nThis is line three,\nAnd so on...")
f = File.new("testfile")
f.each { |line| p "#{f.lineno}: #{line}" }
# => "1: This is line one,\n"
# "2: This is line two,\n"
# "3: This is line three,\n"
# "4: And so on..."
//}
//e......e three,And so on...")
f = File.new("testfile")
f.each(",", 10) { |line| p "#{f.lineno}: #{line}" }
# => "0: This is li"
# "1: ne one,"
# "1: This is li"
# "2: ne two,"
# "2: This is li"
# "3: ne three,"
# "3: And so on."
# "4: .."
//}
//emlist[例: chomp = true][ruby]{
IO.write("testfile", "This is...