!RBIX 0 x M 1 n n x 10 __script__ i 33 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 45 3 4 43 5 56 6 47 50 7 1 15 2 11 I 3 I 0 I 0 I 0 n p 8 s 11 spec_helper x 7 require 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 14 7 0 7 1 7 2 35 3 56 3 50 4 0 11 I 4 I 0 I 0 I 0 I -2 p 5 x 4 any? x 6 exist? x 7 exists? 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 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 10 when empty 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 8 45 0 1 48 2 38 3 11 I 2 I 0 I 0 I 0 I -2 p 4 x 7 Hamster n x 3 set x 4 @set p 5 I 0 I d I 0 I e I 8 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 6 before s 26 with a block returns false M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 21 3 0 56 1 50 2 1 48 3 3 83 4 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 12 I 2 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 4 send x 6 should x 2 == p 5 I 0 I 11 I 0 I 12 I 10 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 2 it s 27 with no block returns false M 1 p 2 x 9 for_block t n x 9 __block__ i 14 39 0 21 3 0 49 1 1 48 2 3 83 3 11 I 3 I 0 I 0 I 0 I -2 p 4 x 4 @set x 4 send x 6 should x 2 == p 5 I 0 I 15 I 0 I 16 I e x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 p 9 I 0 I b I 0 I d I 8 I 11 I 13 I 15 I 1e x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 8 describe s 14 when not empty 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 12 with a block M 1 p 2 x 9 for_block t n x 9 __block__ i 37 5 56 0 47 50 1 0 15 7 2 64 7 3 64 7 4 64 1 35 4 56 5 50 6 0 15 5 7 7 64 56 8 47 50 9 1 11 I 5 I 0 I 0 I 0 I -2 p 10 M 1 p 2 x 9 for_block t n x 9 __block__ i 19 45 0 1 7 2 64 7 3 64 7 4 64 1 49 5 4 38 6 11 I 6 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 1f I 0 I 20 I 13 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 6 before s 1 A s 1 B s 1 C M 1 p 2 x 9 for_block t n x 9 __block__ i 25 57 19 0 15 5 7 0 20 0 48 1 47 48 2 7 3 63 3 56 4 47 50 5 1 11 I 6 I 1 I 1 I 1 n p 6 s 45 returns true if the block ever returns true ( x 7 inspect x 4 to_s s 1 ) M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 21 5 0 56 1 50 2 1 48 3 2 83 4 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 12 57 19 0 15 20 0 21 2 0 83 0 11 I 4 I 1 I 1 I 1 n p 1 x 2 == p 3 I 0 I 26 I c x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 1 x 4 item x 4 send x 6 should x 2 == p 5 I 0 I 25 I 0 I 26 I 10 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 2 it p 5 I 0 I 23 I 4 I 25 I 19 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 1 x 5 value x 4 each s 47 returns false if the block always returns false M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 21 4 0 56 1 50 2 1 48 3 3 83 4 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 12 57 19 0 15 20 0 7 0 64 83 1 11 I 4 I 1 I 1 I 1 n p 2 s 1 D x 2 == p 3 I 0 I 2c I c x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 1 x 4 item x 4 send x 6 should x 2 == p 5 I 0 I 2b I 0 I 2c I 10 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 2 it p 9 I 0 I 1d I 0 I 1f I 8 I 23 I 1a I 2b I 25 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_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 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 35 returns true if any value is truthy M 1 p 2 x 9 for_block t n x 9 __block__ i 24 45 0 1 1 3 2 7 2 64 49 3 4 21 4 0 49 4 1 48 5 2 83 6 11 I 6 I 0 I 0 I 0 I -2 p 7 x 7 Hamster n s 1 A x 3 set x 4 send x 6 should x 2 == p 5 I 0 I 33 I 0 I 34 I 18 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 2 it s 38 returns false if all values are falsey M 1 p 2 x 9 for_block t n x 9 __block__ i 20 45 0 1 1 3 49 2 2 21 4 0 49 3 1 48 4 3 83 5 11 I 4 I 0 I 0 I 0 I -2 p 6 x 7 Hamster n x 3 set x 4 send x 6 should x 2 == p 5 I 0 I 37 I 0 I 38 I 14 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 p 7 I 0 I 31 I 0 I 33 I b I 37 I 16 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 p 7 I 0 I 1b I 0 I 1d I b I 31 I 16 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 p 7 I 0 I 9 I 0 I b I b I 1b I 16 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 8 describe p 5 I 0 I 7 I 4 I 9 I 15 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 1 x 6 method x 4 each p 5 I 0 I 5 I 0 I 7 I e x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 9 I 3 I 12 I 5 I 21 x 66 /Users/haruki_zaemon/Projects/hamster/spec/hamster/set/any_spec.rb p 0