Here is my situation:
XMLRPC::Client
has a proxy constructor,new3
, that takes a hash of options. It takes out the individual values to then delegate the construction to the default initializer,initialize
- I am deriving from
XMLRPC::Client
. I want a class that isXMLRPC::Client
but with some added functionality. - I want to be able to instantiate this derived class using a hash of options as well. This means that in my derived class' initializer, I have to somehow instantiate
super
using thenew3
proxy constructor.
My Question Is if this is possible. If not, then is the only way to solve this is to practically 'copy and paste' the code within the XMLRPC::Client.new3
method into my derived class' constructor?
The reason I'm asking this is simply to see if there is a way of solving this problem, since there is this recurring theme of DRY (Don't Repeat Yourself) within the Ruby community. But of course, if this is the only way, it wont kill me.