Activating a window using ruby code

Hi,

I am writing a method in ruby named activateWindow(windowHandle).

User will pass the window handle of the window that needs to be
activated as the argument and the corresponding window should be
activated.

Can anyone please help with the ruby code to accomplish this?

Thanks,
Anukul