!RBIX 0 x M 1 n n x 10 __script__ i 42 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 7 3 64 47 49 1 1 15 5 45 4 5 43 6 56 7 47 50 8 1 15 2 11 I 3 I 0 I 0 I 0 n p 9 s 11 spec_helper x 7 require s 3 set s 11 hamster/set x 7 Hamster n x 3 Set M 1 p 2 x 9 for_block t n x 9 __block__ i 12 7 0 7 1 35 2 56 2 50 0 0 11 I 3 I 0 I 0 I 0 I -2 p 3 x 4 each x 7 foreach M 1 p 2 x 9 for_block t n x 9 __block__ i 21 57 19 0 15 5 7 0 20 0 47 48 1 63 2 56 2 47 50 3 1 11 I 5 I 1 I 1 I 1 n p 4 s 1 # x 4 to_s M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 18 45 0 1 7 2 64 7 3 64 7 4 64 49 5 3 38 6 11 I 5 I 0 I 0 I 0 I -2 p 7 x 7 Hamster n s 1 A s 1 B s 1 C x 3 set x 4 @set p 5 I 0 I c I 0 I d I 12 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 6 before s 33 with a block (internal iteration) M 1 p 2 x 9 for_block t n x 9 __block__ i 22 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 5 s 11 returns nil M 1 p 2 x 9 for_block t n x 9 __block__ i 18 39 0 21 3 0 56 1 50 2 1 5 47 48 3 49 4 1 11 I 4 I 0 I 0 I 0 I -2 p 5 x 4 @set M 1 p 2 x 9 for_block t n x 9 __block__ i 2 1 11 I 2 I 0 I 0 I 0 I -2 p 0 p 3 I 0 I 13 I 2 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 4 send x 6 be_nil x 6 should p 5 I 0 I 12 I 0 I 13 I 12 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 2 it s 17 yields all values M 1 p 2 x 9 for_block t n x 9 __block__ i 41 45 0 1 48 2 19 0 15 39 3 21 3 0 56 4 50 5 1 15 20 0 48 6 45 0 7 7 8 64 7 9 64 7 10 64 49 2 3 83 11 11 I 7 I 1 I 0 I 0 I -2 p 12 x 3 Set n x 2 [] x 4 @set M 1 p 2 x 9 for_block t n x 9 __block__ i 13 57 19 0 15 21 1 0 20 0 49 0 1 11 I 4 I 1 I 1 I 1 n p 1 x 2 << p 3 I 0 I 18 I d x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 1 x 5 value x 4 send x 6 should n s 1 A s 1 B s 1 C x 2 == p 9 I 0 I 16 I 0 I 17 I 8 I 18 I 13 I 19 I 29 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 1 x 13 actual_values p 7 I 0 I 10 I 0 I 12 I b I 16 I 16 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 8 describe s 13 with no block M 1 p 2 x 9 for_block t n x 9 __block__ i 11 5 7 0 64 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 s 12 returns self M 1 p 2 x 9 for_block t n x 9 __block__ i 19 39 0 21 3 0 49 1 1 5 39 0 47 49 2 1 49 3 1 11 I 4 I 0 I 0 I 0 I -2 p 4 x 4 @set x 4 send x 5 equal x 6 should p 5 I 0 I 20 I 0 I 21 I 13 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 2 it p 5 I 0 I 1e I 0 I 20 I b x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 p 9 I 0 I a I 0 I c I 8 I 10 I 13 I 1e I 1e x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 8 describe p 5 I 0 I 8 I 4 I a I 15 x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 1 x 6 method p 5 I 0 I 6 I 0 I 8 I c x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0 x 8 describe p 9 I 0 I 1 I 9 I 3 I 12 I 4 I 1b I 6 I 2a x 67 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/each_spec.rb p 0