From: Joel VanderWerf Date: 2004-01-01T06:45:44+09:00 Subject: Re: Denying access to methods on DRb Andre Nathan wrote: > 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: Declaring them private works for me, as below: > 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 Foo.instance_methods.each do |m| private m end end Or, simpler, you can just make them private in Foo, if that makes sense for other users of Foo.