A
Andre Nathan
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:RbServer::INSECURE_METHOD << meth.intern
}
end
# some methods
end
Is this the only way to do this or is there something cleaner?
Thanks,
Andre
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:RbServer::INSECURE_METHOD << meth.intern
}
end
# some methods
end
Is this the only way to do this or is there something cleaner?
Thanks,
Andre