I\'ve got the following logic in my code:
if !@players.include?(p.name) ... end
@players is an array. Is there a method so
@players
module Enumerable def does_not_include?(item) !include?(item) end end
Ok, but seriously, the unless works fine.