Practice Makes Perfect - Method not defining


#1



https://www.codecademy.com/courses/ruby-beginner-en-ET4bU/1/4?curriculum_id=5059f8619189a5000201fbcb#


Oops, try again. Did you define your by_three? method?

I seem to be following the code correctly, but it's not defining my method. What am I doing wrong? Feels obvious, but I'm missing it.


def greeter (name)
    return "Welcome {#name}"
end

def by_three? (number)
    if by_three? % 3 == 0
        return true
    else     
        return false
    end
end


#2

Does this look correct?


#3

No. No it does not.

Thanks :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.