Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game = [ [ "hede", "x" ], [ "hodo", "S" ] ]
- game.each { |key,value| puts value == [/[^xyz]/]}
- # code result is as follows:
- # false
- # false
- # what I'm expecting is as follows:
- # false
- # true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement