I tried for 2 days straight to create a by_three? method that takes a single integer parameter, number, and returns true if that number is evenly divisible by three and false if not. IT NEVER FREAKING WORKS

Dis is my code

def by_three?(number)

multiples = (1..1000)

multiples.each { |num1, num2, num3| return num3 }

if (number) = num3

return true

else (number) != num3

return false

end

end

by_three?(9)