I think the example for that is bad, when you look at what it's trying to explain.
def foo_matches?
@foo == :bar
end
It returns true if it does, and false if it doesn't, as opposed to true or nil. Which is miles better than any of those alternatives.It also failed to consider that the naming of the method and the usage of Ruby naming conventions is just as important as what goes on in the body.