filename(将被加载到另一个进程): hello.rb:
class Hello
def say
"hello world"
end
end
filename: test.rb:
require 'ruby_proxy'
RubyProxy::Config.command= xxx_ruby_path
#ATU是RubyProxy缺省的远程调用入口模块名,
#接下来会解释发生了什么
ATU.require 'hello'
a = ATU::Hello.new
puts a.say
简洁的