Hi,
The short answer is yes it could. The longer answer is you probably would not want to use ruby for this. I take it you are looking at building a desktop application that communicates with a server? You could easily use rails on the server and create an API that your desktop application would communicate with. For the desktop client I would suggest looking at adobe AIR or the google desktop equivalent, I can't remember the name offhand.