Content type and file uploads

I’m a litle bit confused. I see that file uploads use the Tempfile object, however the content_type method is not part of Ruby’s Tempfile class. Where does the content_type method come from? Where can I find

a list of all its possible values?

Thanks for your help!

Chris