Ruby vs flash: hardware

Can ruby interact with your computer (ie webcam) in the same way that Flash can?

That’s basically the whole question.