I really don’t think that Professor Mankiw was trying to brainwash his students with any conservative ideology or agenda. I make this statement based on my own experiences.... I was a teaching assistant for Mankiw’s first-year Ph.D. course in macroeconomics for two years, which means that I sat in on his entire course twice.
If there’s any strong ideological undercurrent in Mankiw’s teaching, I would say that it’s Nerdism: the belief that people should listen to, and learn from, nerds. Because believe me—and I say this with genuine respect and affection—Mankiw is a nerd’s nerd.