From: Christian Neukirchen Date: 2006-07-14T04:29:18+09:00 Subject: Re: prototype design pattern transfire@gmail.com writes: > ara.t.howard@noaa.gov wrote: >> >> DB = Prototype.new{ >> host 'localhost' >> port 4242 >> >> def connect() 'do something' end >> >> def inspect() [host, port].join ':' end >> } > > Why no go the extra step? > > DB = Prototype.new{ > host 'localhost' > port 4242 > > connect does{ 'do something' } > > inspect does{ [host, port].join ':' } > } Why not even this: connect { 'do something' } inspect { [host, port].join ':' } > T. -- Christian Neukirchen http://chneukirchen.org