yet another photo inturruptor

Hello!
How would I hook this up?

http://www.datasheetcatalog.org/datasheet/fairchild/QVE00112.pdf

I feel dumb, it seems like a no-brainer. Is it on par with the "Button" thing?

Hook up the gray wire to +5V, green wire to GND, white wire to a digital input, then enable the pullup resistor for the input.

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, light sensor, potentiometers, pushbuttons

It works.
Ok, I thought I had tried that and it didn't work the first time. Honest, I'm not retarded.

Thanks