From: Markus Werner Date: 2005-12-31T20:04:53+09:00 Subject: Re: stdlib ipaddr request for comment;-) Dear Daniel, > My suggestion is to submit a patch to ruby-core and see what folks > think. It may be rejected, but at least it will be considered. Since I'm not a real programmer I would discuss the different ways to do it. So I don't chose a bad way. > Another option is to submit your idea to the author of the ip-address > project on RubyForge at http://rubyforge.org/projects/ip-address/ and > see what Erik thinks of it. I'll consider this, thanks for this hint. Just an overview: 1. Easy way would be do just extend the Method IPAddr#new to save also the IPAdress and not only the net. So it would be easy to derive from ipaddr. 2. Simple derive from ipaddr and write your own initialize function which stores the required attr. In this case it is necessary to reimplement (cut & paste :-) things that are already in the superclass. I don't like this way. 3. Implementing a different behavior with an migration strategy. .... with kind regards Markus