Search code examples
rubywinapicomolecom-server

Create COM server with Ruby?


Ruby on Windows has the win32::ole library that allows Ruby to act as a COM client, similar to VBScript and other scripting languages (Python, Perl, etc. with win32 bindings). However, I am wondering if it is possible to create a COM server with Ruby that can be accessed from other clients. Python makes this possible, even simple, with its win32 package, but I have not been able to find any examples of this with Ruby.


Solution

  • Well, there's always Python, which makes creating COM servers trivially easy. I'm giving up on Ruby for this purpose.