[Ruby] copying methods around

Ryan Davis ryand-ruby at zenspider.com
Tue Mar 20 16:48:58 PST 2007


On Mar 20, 2007, at 17:18 , John Whitley wrote:

> I note that the presented implementation seems odd out of context, in
> that you're both returning a new instance of OpenStruct as well as
> side-affecting the OpenStruct class.

aka factory method



More information about the Ruby mailing list