I think you're probably talking about eye boggling. If it looks like your ratties eyes are shooting in and out rapidly then it's an eye boggle. It looks funny (or even scary) but you should be proud to know your rattie is very happy!
eye boggling occurs during extreme bruxing, in other words, when your rattie is extremely content!
I read about eye boggling but I've only just seen it a few days ago. I laughed my head off because my Ostrich kept boggling when I was petting him. I've also seen Penny do it when she's nursing her babies (she's a happy momma).
this site will tell you more about it
and this is a direct link to rat behavior FAQ's.... it's set up really nicely, so if you have a question you'd be able to find the answer quickly (if it's on there)