I understand class declaration, inheritance, but "validates" is what's bugging me. I know what it is supposed to do inside rails but what is it? Is it a method call? Why isn't it inside another method? How it works and what's passed as argument to it?