3159件ヒット
[1-100件を表示]
(0.146秒)
ライブラリ
- ビルトイン (1878)
- csv (48)
- dbm (48)
- gdbm (48)
- getoptlong (24)
- matrix (134)
-
net
/ http (36) - openssl (60)
- ostruct (24)
- pathname (39)
- prime (96)
- psych (12)
- rake (12)
-
rdoc
/ context (24) - resolv (12)
-
rexml
/ document (96) -
rexml
/ parsers / pullparser (12) -
rinda
/ tuplespace (12) -
rubygems
/ config _ file (12) -
rubygems
/ package / tar _ input (12) -
rubygems
/ source _ index (24) - sdbm (48)
- set (99)
-
shell
/ system-command (6) - stringio (88)
- thread (18)
- tsort (33)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httprequest (12) -
webrick
/ httputils (12) -
win32
/ registry (36) - win32ole (72)
-
yaml
/ dbm (12) - zlib (36)
クラス
-
ARGF
. class (126) - Array (105)
- CSV (12)
-
CSV
:: Row (12) -
CSV
:: Table (24) - DBM (48)
- Dir (19)
- Enumerator (163)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Chain (14) -
Enumerator
:: Lazy (171) -
Enumerator
:: Yielder (30) - GDBM (48)
-
Gem
:: ConfigFile (12) -
Gem
:: Package :: TarInput (12) -
Gem
:: SourceIndex (24) - GetoptLong (24)
- Hash (146)
- IO (150)
- Matrix (110)
- Module (36)
- Object (60)
-
OpenSSL
:: ASN1 :: Constructive (12) -
OpenSSL
:: Config (12) - OpenStruct (24)
- Pathname (39)
- Prime (24)
-
Prime
:: PseudoPrimeGenerator (72) -
Psych
:: Nodes :: Node (12) -
RDoc
:: Context (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attributes (24) -
REXML
:: Element (12) -
REXML
:: Parent (36) -
REXML
:: Parsers :: PullParser (12) -
Rake
:: TaskArguments (12) - Range (14)
-
Resolv
:: DNS (12) -
Rinda
:: TupleSpace (12) - SDBM (48)
- Set (132)
-
Shell
:: SystemCommand (6) - StopIteration (12)
- String (116)
- StringIO (88)
- Struct (48)
- Thread (12)
-
Thread
:: Queue (82) -
Thread
:: SizedQueue (46) - Vector (24)
-
WEBrick
:: HTTPAuth :: Htdigest (12) -
WEBrick
:: HTTPAuth :: Htpasswd (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPUtils :: FormData (12) - WIN32OLE (24)
-
WIN32OLE
_ PARAM (24) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (12) -
Win32
:: Registry (36) -
YAML
:: DBM (12) -
Zlib
:: GzipReader (36)
モジュール
- Enumerable (499)
-
Net
:: HTTPHeader (36) -
OpenSSL
:: Buffering (36) -
REXML
:: Node (12) - TSort (33)
キーワード
- & (12)
- + (19)
- - (12)
- << (12)
- ^ (12)
-
append
_ features (12) - bytes (21)
-
canonical
_ each (12) - chars (21)
- chunk (36)
-
chunk
_ while (12) - clear (12)
- close (10)
- closed? (10)
- codepoints (21)
- collect (12)
- collect! (19)
-
collect
_ concat (12) - count (36)
- default (12)
-
default
_ event _ sources (12) -
delete
_ if (12) - deq (24)
- difference (12)
- drop (12)
- each2 (12)
-
each
_ attribute (24) -
each
_ byte (72) -
each
_ capitalized (12) -
each
_ char (48) -
each
_ child (43) -
each
_ classmodule (12) -
each
_ codepoint (48) -
each
_ cons (24) -
each
_ data (12) -
each
_ element _ with _ attribute (12) -
each
_ entry (27) -
each
_ grapheme _ cluster (16) -
each
_ index (24) -
each
_ key (24) -
each
_ line (120) -
each
_ pair (108) -
each
_ recursive (12) -
each
_ resource (12) -
each
_ slice (24) -
each
_ strongly _ connected _ component (11) -
each
_ strongly _ connected _ component _ from (11) -
each
_ value (96) -
each
_ with _ index (60) -
each
_ with _ object (24) - eager (6)
- entries (12)
-
enum
_ for (48) -
extend
_ object (12) - feed (12)
- filter! (14)
-
find
_ index (24) - first (24)
-
flat
_ map (12) -
force
_ quotes? (12) -
grapheme
_ clusters (16) - index (24)
- inject (36)
-
instance
_ method (12) - intersection (12)
-
keep
_ if (24) - length (12)
- lines (49)
- map (12)
- map! (19)
- merge (12)
- next (12)
-
next
_ values (12) - notify (12)
-
ole
_ func _ methods (12) -
ole
_ query _ interface (12) - output? (12)
- pack (21)
-
peek
_ values (12) - pop (24)
- push (24)
- quiet= (12)
- reduce (36)
- reject! (12)
- replace (12)
-
respond
_ to? (12) - result (12)
-
reverse
_ each (38) - rewind (12)
- select! (24)
- shift (24)
- size (12)
-
slice
_ after (46) -
slice
_ before (60) -
slice
_ when (23) - subtract (12)
- sum (36)
-
super
_ each (6) - take (12)
-
take
_ while (24) -
to
_ a (12) -
to
_ enum (48) -
to
_ h (19) -
to
_ proc (6) -
tsort
_ each (11) - union (12)
- unpack (12)
- update (36)
- upto (12)
- value (24)
-
with
_ index (48) -
with
_ object (24) - yield (12)
- zip (24)
- | (12)
検索結果
先頭5件
-
Enumerator
# each(*args) -> Enumerator (21265.0) -
生成時のパラメータに従ってブロックを繰り返します。 *args を渡した場合は、生成時のパラメータ内引数末尾へ *args を追加した状態で繰り返します。 ブロック付きで呼び出された場合は、 生成時に指定したイテレータの戻り値をそのまま返します。
...引数
//emlist[例1][ruby]{
str = "Yet Another Ruby Hacker"
enum = Enumerator.new {|y| str.scan(/\w+/) {|w| y << w }}
enum.each {|word| p word } # => "Yet"
# "Another"
# "Ruby"......# "Ruby"
# "Hacker"
//}
//emlist[例2][ruby]{
"Hello, world!".scan(/\w+/) # => ["Hello", "world"]
"Hello, world!".to_enum(:scan, /\w+/).to_a # => ["Hello", "world"]
"Hello, world!".to_enum(:scan).each(/\w+/).to_a # =>......ew
def obj.each_arg(a, b=:b, *rest)
yield a
yield b
yield rest
:method_returned
end
enum = obj.to_enum :each_arg, :a, :x
enum.each.to_a # => [:a, :x, []]
enum.each.equal?(enum) # => true
enum.each { |elm| elm } # => :method_returned
enum.each(:y, :z).to_... -
Enumerator
:: Chain # each(*args) -> Enumerator (21219.0) -
まず最初の繰り返し可能なオブジェクトの each メソッドを args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト も同様に呼び出します。
...まず最初の繰り返し可能なオブジェクトの each メソッドを
args 引数とともに呼び出した後、続く繰り返し可能なオブジェクト
も同様に呼び出します。
ブロックが渡されない場合は Enumerator を返します。... -
Struct
# each -> Enumerator (21209.0) -
構造体の各メンバに対して繰り返します。
...ドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Sm......ith", "123 Maple, Anytown NC", 12345)
joe.each {|x| puts(x) }
# => Joe Smith
# 123 Maple, Anytown NC
# 12345
//}... -
Struct
# each {|value| . . . } -> self (21209.0) -
構造体の各メンバに対して繰り返します。
...ドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Sm......ith", "123 Maple, Anytown NC", 12345)
joe.each {|x| puts(x) }
# => Joe Smith
# 123 Maple, Anytown NC
# 12345
//}... -
REXML
:: Attributes # each {|name , value| . . . } -> () (21208.0) -
各属性の名前と値に対しブロックを呼び出します。
...t[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.each do |name, value|
p [name, value]
e... -
Gem
:: SourceIndex # each -> Enumerator (21203.0) -
自身に登録されているそれぞれの Gem についてブロックを評価します。
自身に登録されているそれぞれの Gem についてブロックを評価します。 -
Gem
:: SourceIndex # each {|full _ name , gem| . . . } -> Hash (21203.0) -
自身に登録されているそれぞれの Gem についてブロックを評価します。
自身に登録されているそれぞれの Gem についてブロックを評価します。 -
WEBrick
:: HTTPAuth :: Htdigest # each {|user , realm , pass| . . . } -> Hash (21202.0) -
ユーザ名、レルム、パスワードをブロックに渡して評価します。
ユーザ名、レルム、パスワードをブロックに渡して評価します。 -
WEBrick
:: HTTPAuth :: Htpasswd # each {|user , pass| . . . } -> Hash (21202.0) -
ユーザ名とパスワードをブロックに与えて評価します。
ユーザ名とパスワードをブロックに与えて評価します。