ライブラリ
- ビルトイン (2555)
- csv (84)
- dbm (72)
- gdbm (72)
- getoptlong (60)
- matrix (244)
-
net
/ http (96) -
net
/ pop (132) -
net
/ smtp (36) - openssl (60)
- ostruct (24)
- pathname (75)
- pp (12)
- prettyprint (1)
- 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 (108)
- shell (30)
-
shell
/ builtin-command (36) -
shell
/ command-processor (30) -
shell
/ filter (36) -
shell
/ system-command (12) - socket (12)
- stringio (176)
- thread (18)
- tsort (117)
- un (12)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httputils (12) -
win32
/ registry (36) - win32ole (168)
-
yaml
/ dbm (36) - zlib (120)
クラス
-
ARGF
. class (264) - Array (213)
- BasicSocket (12)
- CSV (24)
-
CSV
:: Row (24) -
CSV
:: Table (36) - DBM (72)
- Dir (62)
- Enumerator (163)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (171) -
Enumerator
:: Yielder (30) - GDBM (72)
-
Gem
:: ConfigFile (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: Package :: TarReader (36) -
Gem
:: SourceIndex (24) - GetoptLong (60)
- Hash (182)
- 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)
- PrettyPrint (1)
- 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 (33)
- Resolv (24)
-
Resolv
:: DNS (36) -
Resolv
:: Hosts (24) -
Rinda
:: TupleSpace (12) - SDBM (72)
- Set (144)
- Shell (30)
-
Shell
:: Cat (6) -
Shell
:: CommandProcessor (30) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (36) -
Shell
:: Glob (6) -
Shell
:: SystemCommand (12) -
Shell
:: Tee (6) -
Shell
:: Void (6) - StopIteration (12)
- String (260)
- StringIO (176)
- Struct (48)
- Thread (48)
-
Thread
:: Queue (82) -
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
_ EVENT (12) -
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ VARIABLE (60) -
Win32
:: Registry (36) -
YAML
:: DBM (36) -
Zlib
:: GzipReader (96) -
Zlib
:: GzipWriter (24)
モジュール
- Enumerable (499)
- Kernel (12)
-
Net
:: HTTPHeader (96) -
OpenSSL
:: Buffering (36) -
REXML
:: Node (12) - TSort (117)
キーワード
- % (2)
- & (12)
- + (19)
- - (12)
- << (12)
- [] (12)
- ^ (12)
- all (36)
-
append
_ features (12) - bytes (66)
-
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)
- drop (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) - eager (6)
- echo (18)
- entries (12)
-
enum
_ for (48) - eof (12)
- eof? (12)
-
extend
_ object (12) - feed (12)
- filter! (14)
-
find
_ index (36) - first (24)
- first? (1)
-
flat
_ map (12) -
force
_ quotes? (12) - foreach (18)
- glob (18)
-
grapheme
_ clusters (16) - handler= (12)
- index (36)
- inject (48)
-
inplace
_ mode (12) -
instance
_ method (12) - intersection (12)
- invert (12)
- join (24)
-
keep
_ if (24) - length (12)
- lines (122)
- mail (36)
- map (24)
- map! (38)
- merge (12)
- name (12)
- next (12)
-
next
_ values (12) - notify (12)
-
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ query _ interface (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - ordering= (12)
- output? (12)
- pack (21)
-
peek
_ values (12) - pop (60)
- pos (24)
- push (24)
- quiet= (12)
- recvmsg (12)
- reduce (36)
- rehash (12)
- reject! (24)
- replace (48)
-
respond
_ to? (12) - result (12)
-
reverse
_ each (52) - rewind (24)
- select! (24)
-
send
_ mail (12) - sendmail (12)
- seplist (12)
- shift (24)
- size (12)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - step (3)
-
strongly
_ connected _ components (12) - subtract (12)
- sum (36)
-
super
_ each (6) - take (12)
-
take
_ while (24) - tee (18)
- tell (24)
-
to
_ a (24) -
to
_ enum (48) -
to
_ h (19) -
to
_ proc (6) -
to
_ s (12) - tsort (12)
-
tsort
_ each (23) -
tsort
_ each _ child (12) -
tsort
_ each _ node (12) - union (12)
- unpack (12)
- update (36)
- upto (12)
- value (24)
- variables (12)
-
with
_ index (48) -
with
_ object (24) - yield (12)
- zip (48)
- | (12)
検索結果
先頭5件
-
Range
# each -> Enumerator (18121.0) -
範囲内の要素に対して繰り返します。
...each は各要素の succ メソッドを使用してイテレーションするようになりました。
@raise TypeError succ メソッドを持たないクラスの範囲オブジェクトに対してこのメソッドを呼んだ場合に発生します。
//emlist[例][ruby]{
(10..15).each......{|n| print n, ' ' }
# prints: 10 11 12 13 14 15
(2.5..5).each {|n| print n, ' ' }
# raises: TypeError: can't iterate from Float
//}... -
Range
# each {|item| . . . } -> self (18121.0) -
範囲内の要素に対して繰り返します。
...each は各要素の succ メソッドを使用してイテレーションするようになりました。
@raise TypeError succ メソッドを持たないクラスの範囲オブジェクトに対してこのメソッドを呼んだ場合に発生します。
//emlist[例][ruby]{
(10..15).each......{|n| print n, ' ' }
# prints: 10 11 12 13 14 15
(2.5..5).each {|n| print n, ' ' }
# raises: TypeError: can't iterate from Float
//}... -
Enumerator
:: Chain # each(*args) -> Enumerator (18119.0) -
まず最初の繰り返し可能なオブジェクトの each メソッドを args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト も同様に呼び出します。
...まず最初の繰り返し可能なオブジェクトの each メソッドを
args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト
も同様に呼び出します。
ブロックが渡されない場合は Enumerator を返します。... -
Enumerator
:: Chain # each(*args) { |*args| . . . } -> object (18119.0) -
まず最初の繰り返し可能なオブジェクトの each メソッドを args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト も同様に呼び出します。
...まず最初の繰り返し可能なオブジェクトの each メソッドを
args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト
も同様に呼び出します。
ブロックが渡されない場合は Enumerator を返します。... -
StringIO
# each(rs = $ / ) -> Enumerator (18117.0) -
自身から 1 行ずつ読み込み、それを引数として与えられたブロックを実行します。
...連続する改行を行の区切りとみなします(パラグラフモード)。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge\nfoo\n")
a.each{|l| p l }
#=> "hoge\n"
# "foo\n"
//}
@see $/
@see IO#each_line... -
StringIO
# each(rs = $ / ) {|line| . . . } -> self (18117.0) -
自身から 1 行ずつ読み込み、それを引数として与えられたブロックを実行します。
...連続する改行を行の区切りとみなします(パラグラフモード)。
@raise IOError 自身が読み取り不可なら発生します。
//emlist[例][ruby]{
require "stringio"
a = StringIO.new("hoge\nfoo\n")
a.each{|l| p l }
#=> "hoge\n"
# "foo\n"
//}
@see $/
@see IO#each_line... -
CSV
:: Table # each {|column _ name , values| . . . } -> self (18115.0) -
デフォルトのミックスモードかロウモードでは、行単位で繰り返します。カラ ムモードでは、ブロックに列名と対応する値の配列を与え、列単位で繰り返し ます。
...header2"], ["row2_1", "row2_2"])
row3 = CSV::Row.new(["header1", "header2"], ["row3_1", "row3_2"])
table = CSV::Table.new([row1, row2, row3])
table.each { |row| p row }
# => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
# => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
# => #<CSV::Row "hea......ow2_1", "row2_2"])
row3 = CSV::Row.new(["header1", "header2"], ["row3_1", "row3_2"])
table = CSV::Table.new([row1, row2, row3])
table.by_col!
table.each { |column_name, values| print column_name, values, "\n" }
# => header1["row1_1", "row2_1", "row3_1"]
# => header2["row1_2", "row2_2", "row3_2"]
//... -
CSV
:: Table # each {|row| . . . } -> self (18115.0) -
デフォルトのミックスモードかロウモードでは、行単位で繰り返します。カラ ムモードでは、ブロックに列名と対応する値の配列を与え、列単位で繰り返し ます。
...header2"], ["row2_1", "row2_2"])
row3 = CSV::Row.new(["header1", "header2"], ["row3_1", "row3_2"])
table = CSV::Table.new([row1, row2, row3])
table.each { |row| p row }
# => #<CSV::Row "header1":"row1_1" "header2":"row1_2">
# => #<CSV::Row "header1":"row2_1" "header2":"row2_2">
# => #<CSV::Row "hea......ow2_1", "row2_2"])
row3 = CSV::Row.new(["header1", "header2"], ["row3_1", "row3_2"])
table = CSV::Table.new([row1, row2, row3])
table.by_col!
table.each { |column_name, values| print column_name, values, "\n" }
# => header1["row1_1", "row2_1", "row3_1"]
# => header2["row1_2", "row2_2", "row3_2"]
//... -
Dir
# each -> Enumerator (18115.0) -
ディレクトリの各エントリを表す文字列を引数として、ブロックを評価します。
...場合、各エントリを文字列として保持する
Enumerator
オブジェクトを返します。
@raise IOError 既に自身が close している場合に発生します。
//emlist[例][ruby]{
Dir.open('.').each{|f|
p f
}
#=> "."
# ".."
# "bar"
# "foo"
//}
@see Dir#each_child... -
Dir
# each {|item| . . . } -> self (18115.0) -
ディレクトリの各エントリを表す文字列を引数として、ブロックを評価します。
...場合、各エントリを文字列として保持する
Enumerator
オブジェクトを返します。
@raise IOError 既に自身が close している場合に発生します。
//emlist[例][ruby]{
Dir.open('.').each{|f|
p f
}
#=> "."
# ".."
# "bar"
# "foo"
//}
@see Dir#each_child...