Toon Material Animation
The 'Normal' output of the Texture Coordinate node is in the Object Space of the shaded object. The 'Object' output defaults to the space of the shaded object, but can be overridden to another object's space, using the 'Object' field at the bottom of the node.

We need the dot-product of the direction of the normal at the shading point in World Space, and the vector from the lamp-object to the shading point, also in World Space (which is the normalized position of the shading point in the lamp-object's space, if the lamp-object is not rotated or scaled non-uniformly).

It's also nice to map the full range of the possible dot-product results from (-1,1) to (0,1) to feed the color ramp.

So this is a possible setup, with the rotations and scales of whatever object you are using as a lamp locked off to (0,0,0).



..with this sort of result: