!RBIX 0 x M 1 n n x 10 __script__ i 59 5 42 0 1 42 0 2 61 45 3 46 4 1 7 5 60 77 6 46 7 1 44 46 8 1 14 5 7 9 60 44 46 8 1 14 5 7 10 60 44 46 8 1 14 5 42 11 12 40 13 53 14 44 47 15 1 14 2 11 I 4 I 0 I 0 I 0 n p 16 x 4 File n n x 11 active_path x 7 dirname s 18 /../../spec_helper x 1 + x 11 expand_path x 7 require s 3 set s 11 hamster/set x 7 Hamster n x 3 Set M 1 n n x 9 __block__ i 11 5 7 0 60 53 1 44 47 2 1 11 I 4 I 0 I -1 I -1 n p 3 s 5 #each M 1 n n x 9 __block__ i 30 5 53 0 44 47 1 0 14 5 7 2 60 53 3 44 47 4 1 14 5 7 5 60 53 6 44 47 4 1 11 I 4 I 0 I -1 I -1 n p 7 M 1 n n x 9 __block__ i 18 42 0 1 7 2 60 7 3 60 7 4 60 46 5 3 35 6 11 I 5 I 0 I -1 I -1 n 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 a I 0 I b I 12 x 31 ./spec/hamster/set/each_spec.rb p 0 x 6 before s 33 with a block (internal iteration) M 1 n n x 9 __block__ i 22 5 7 0 60 53 1 44 47 2 1 14 5 7 3 60 53 4 44 47 2 1 11 I 4 I 0 I -1 I -1 n p 5 s 12 returns self M 1 n n x 9 __block__ i 18 36 0 53 1 47 2 0 5 36 0 44 46 3 1 46 4 1 11 I 4 I 0 I -1 I -1 n p 5 x 4 @set M 1 n n x 9 __block__ i 2 1 11 I 2 I 0 I -1 I -1 n p 0 p 3 I 0 I 11 I 2 x 31 ./spec/hamster/set/each_spec.rb p 0 x 4 each x 5 equal x 6 should p 5 I 0 I 10 I 0 I 11 I 12 x 31 ./spec/hamster/set/each_spec.rb p 0 x 2 it s 17 yields all values M 1 n n x 9 __block__ i 38 42 0 1 45 2 17 0 14 36 3 53 4 47 5 0 14 18 0 45 6 42 0 7 7 8 60 7 9 60 7 10 60 46 2 3 79 11 11 I 7 I 1 I -1 I -1 n p 12 x 3 Set n x 2 [] x 4 @set M 1 n n x 9 __block__ i 13 54 17 0 14 19 1 0 18 0 46 0 1 11 I 4 I 1 I 1 I 1 n p 1 x 2 << p 3 I 0 I 16 I d x 31 ./spec/hamster/set/each_spec.rb p 1 x 5 value x 4 each x 6 should n s 1 A s 1 B s 1 C x 2 == p 9 I 0 I 14 I 0 I 15 I 8 I 16 I 10 I 17 I 26 x 31 ./spec/hamster/set/each_spec.rb p 1 x 13 actual_values p 7 I 0 I e I 0 I 10 I b I 14 I 16 x 31 ./spec/hamster/set/each_spec.rb p 0 x 8 describe s 13 with no block M 1 n n x 9 __block__ i 11 5 7 0 60 53 1 44 47 2 1 11 I 4 I 0 I -1 I -1 n p 3 s 12 returns self M 1 n n x 9 __block__ i 15 36 0 45 1 5 36 0 44 46 2 1 46 3 1 11 I 4 I 0 I -1 I -1 n p 4 x 4 @set x 4 each x 5 equal x 6 should p 5 I 0 I 1e I 0 I 1f I f x 31 ./spec/hamster/set/each_spec.rb p 0 x 2 it p 5 I 0 I 1c I 0 I 1e I b x 31 ./spec/hamster/set/each_spec.rb p 0 p 9 I 0 I 8 I 0 I a I 8 I e I 13 I 1c I 1e x 31 ./spec/hamster/set/each_spec.rb p 0 x 8 describe p 5 I 0 I 6 I 0 I 8 I b x 31 ./spec/hamster/set/each_spec.rb p 0 x 8 describe p 9 I 0 I 1 I 1a I 3 I 23 I 4 I 2c I 6 I 3b x 31 ./spec/hamster/set/each_spec.rb p 0