Here’s the logic I’m trying to write, but I can’t find the proper Ruby way to say it:
if Object.id [occurs in this array ->] [13, 16, 234]
#run this code if true
else
#run this code if false
end
Basically I want to return true if an id occurs somewhere in a specific array.
I think you’re looking for Array#include?:
Hope that helps!