module JRubyBridge::ObjectProxy
A module that patches initialization behavior to cause new instances to reside on the JRuby DRb service.
Public Class Methods
included(base)
click to toggle source
# File lib/jruby_bridge/object_proxy.rb, line 11 def self.included(base) base.class_eval do include DRb::DRbUndumped class << self alias :proxied_new :new def new(*args) Service.new_drb_object.remote_proxied_new self, *args end end end # base.class_eval end
new(*args)
click to toggle source
# File lib/jruby_bridge/object_proxy.rb, line 18 def new(*args) Service.new_drb_object.remote_proxied_new self, *args end
Also aliased as: proxied_new