开发者

IPC with Ruby 1.8.5

开发者 https://www.devze.com 2023-03-01 14:56 出处:网络
I need to do IPC with Ruby 1.8.5. The catch is that it\'s the Ruby that ships with Google SketchUp, and is only a subset of the full Ruby API. So for instance, there\'s no Socket class, and no DRb.

I need to do IPC with Ruby 1.8.5. The catch is that it's the Ruby that ships with Google SketchUp, and is only a subset of the full Ruby API. So for instance, there's no Socket class, and no DRb.

What are some other way's of doing IPC with Ruby? Anything that uses the File class, like memory mapped files, or somethin开发者_开发知识库g like that? I'm completely new to IPC, so I apologize if I missed something obvious.


The latest version of SketchUp ships with Ruby 1.8.6. You can download (if you haven't already) the core Ruby API, and just require whatever files you need, to implement your script.

Testing non-SketchUp Ruby code, is much easier outside of SketchUp, with the command line, or an editor like SciTE. Then you can add your SketchUp code for tests within the application.

Ruby Download

SciTE Download

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号