KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've got the following logic in my code: if !@players.include?(p.name) ... end @players is an array. Is there a method so I can avoid the ! ? Ideally, this snippet would be: if @players.does_not_include?(p.name) ... end
Tags (comma-separated)
Save Edits
Cancel