From: Andre Nathan Date: 2004-01-01T02:24:06+09:00 Subject: Denying access to methods on DRb Hi What is the way to specify that only some methods on an object exposed via Drb can be accessed? Reading the source, I found the INSECURE_METHOD array, so this is what I'm doing now: module Foo # some methods end class Bar include Foo # I want Bar's own methods to be available via DRb, but not the # ones from Foo def initialize Foo::instance_methods.each { |meth| DRb::DRbServer::INSECURE_METHOD << meth.intern } end # some methods end Is this the only way to do this or is there something cleaner? Thanks, Andre