From: Andre Nathan Date: 2004-01-01T08:23:14+09:00 Subject: Re: Denying access to methods on DRb Joel VanderWerf said: > Declaring them private works for me, as below: > > Foo.instance_methods.each do |m| > private m > end But that would make them unavaible for local use (my original idea was something like "you can use it locally, but not through the network". Would that be considered bad design? I mean, if a class is to be used via DRb, should it be used *only* via Drb?). > Or, simpler, you can just make them private in Foo, if that makes sense > for other users of Foo. I didn't know modules could have private methods (or maybe I forgot...) I'll have a look at that. Thanks, Andre