Maya 4.5+ has a Ramp Shader that's useful for that. Otherwise, you'd use the Sampler Info + Blend Colors Node with a layered shader as I did with my Toon Mike character. You'd adjust it to give you that kind of line.