Advertisement
Guest User

Untitled

a guest
Jun 25th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. game = [ [ "hede", "x" ], [ "hodo", "S" ] ]
  2. game.each { |key,value| puts value == [/[^xyz]/]}
  3.  
  4. # code result is as follows:
  5. # false
  6. # false
  7.  
  8. # what I'm expecting is as follows:
  9. # false
  10. # true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement