401件ヒット
[401-401件を表示]
(0.063秒)
種類
- インスタンスメソッド (347)
- 特異メソッド (38)
- モジュール関数 (9)
- クラス (6)
- モジュール (1)
クラス
-
ARGF
. class (26) - Array (59)
- Dir (12)
- Enumerator (18)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Chain (6) -
Enumerator
:: Lazy (35) -
Enumerator
:: Yielder (2) - Hash (32)
- IO (32)
- Integer (6)
- Numeric (9)
- Object (8)
- Range (9)
- StopIteration (1)
- String (18)
- Struct (8)
モジュール
- Enumerable (66)
- Kernel (5)
- ObjectSpace (4)
オブジェクト
- ENV (24)
キーワード
- % (2)
- + (1)
- << (1)
- == (1)
- ArithmeticSequence (1)
- Chain (1)
- Enumerable (1)
- Fiber (1)
- Lazy (1)
- Yielder (1)
- begin (1)
- bsearch (4)
-
bsearch
_ index (2) - bytes (4)
- chain (1)
- chars (4)
- chunk (3)
-
chunk
_ while (2) - codepoints (4)
- collect (5)
- collect! (2)
-
collect
_ concat (3) - combination (2)
- cycle (4)
-
delete
_ if (6) - detect (2)
- downto (2)
- drop (1)
-
drop
_ while (5) - each (30)
-
each
_ byte (6) -
each
_ char (6) -
each
_ child (6) -
each
_ codepoint (6) -
each
_ cons (2) -
each
_ entry (2) -
each
_ grapheme _ cluster (2) -
each
_ index (2) -
each
_ key (4) -
each
_ line (12) -
each
_ object (4) -
each
_ pair (6) -
each
_ slice (2) -
each
_ value (4) -
each
_ with _ index (2) -
each
_ with _ object (2) - end (1)
-
enum
_ for (4) -
exclude
_ end? (1) - feed (1)
- filter (11)
- filter! (6)
- find (2)
-
find
_ all (3) -
find
_ index (6) - first (2)
-
flat
_ map (3) - force (1)
- foreach (6)
- grep (1)
-
grep
_ v (1) -
group
_ by (2) - gsub (7)
- gsub! (4)
- hash (1)
- index (3)
- inspect (2)
-
keep
_ if (6) - last (2)
- lazy (2)
- lines (12)
- loop (2)
- map (5)
- map! (2)
-
max
_ by (4) -
min
_ by (4) -
minmax
_ by (2) - new (4)
- next (1)
-
next
_ values (1) - partition (2)
- peek (1)
-
peek
_ values (1) - permutation (2)
- reject (9)
- reject! (6)
-
repeated
_ combination (2) -
repeated
_ permutation (2) - result (1)
-
reverse
_ each (4) - rewind (2)
- rindex (3)
- select (11)
- select! (6)
- size (3)
-
slice
_ after (4) -
slice
_ before (5) -
slice
_ when (2) -
sort
_ by (2) -
sort
_ by! (2) - step (13)
- take (1)
-
take
_ while (6) - then (2)
- times (2)
-
to
_ enum (4) -
transform
_ keys (2) -
transform
_ keys! (2) -
transform
_ values (2) -
transform
_ values! (2) - uniq (2)
- upto (2)
-
with
_ index (2) -
with
_ object (2) - yield (1)
-
yield
_ self (2) - zip (2)
検索結果
-
Struct
# each _ pair {|member , value| . . . } -> self (10.0) -
構造体のメンバ名(Symbol)と値の組を引数にブロックを繰り返し実行します。
構造体のメンバ名(Symbol)と値の組を引数にブロックを繰り返し実行します。
//emlist[例][ruby]{
Foo = Struct.new(:foo, :bar)
Foo.new('FOO', 'BAR').each_pair {|m, v| p [m,v]}
# => [:foo, "FOO"]
# [:bar, "BAR"]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。