Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2347
| From | Johnny Morrice <spoon@killersmurf.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Seeking advice |
| Date | 2011-04-05 09:44 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <20110405154438.7d026795@fractal> (permalink) |
| References | <a5c155d833135cc1cccec3cf894380c8@ruby-forum.com> <BANLkTimpmVsObRCynWZn9Dv9jW9e60HktQ@mail.gmail.com> |
On Tue, Apr 5, 2011 at 3:22 PM, Alex Rothbard <alex323@gmail.com> wrote: > A complete implementation of a transport requires that three classes > (such as the 'Grid' class below) be implemented from their respective > base class. > These transport classes are used by other classes within the > library, and should never be used directly by the user. I interpreted this to mean that the base grid class would not be part of the interface presented to the user either. Is this correct? On Tue, 5 Apr 2011 22:39:33 +0900 Robert Klemme <shortcutter@googlemail.com> wrote: > def initialize(transport) > @t = transport > @grid = @t.grid > @grid = @t.grid.new # alternative > end Cus the way Robert saw it was that the transport should be the factory for the grid, and the user will see the grid. The transport, which is the factory for the grid, is fed to the object. But the way I saw it was that the transport should be created by the factory and so the user should see no grid at all. The factory feeds the transport to the object. Have I missed the point? More importantly, have you made the code win? Cheers Johnny
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Seeking advice Alex Rothbard <alex323@gmail.com> - 2011-04-05 08:22 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 08:39 -0500
Re: Seeking advice Johnny Morrice <spoon@killersmurf.com> - 2011-04-05 09:44 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-05 10:23 -0500
Re: Seeking advice Johnny Morrice <spoon@killersmurf.com> - 2011-04-05 08:43 -0500
Re: Seeking advice Alex Rothbard <alex323@gmail.com> - 2011-04-05 13:30 -0500
Re: Seeking advice Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-04-06 01:53 -0500
Re: Seeking advice Robert Klemme <shortcutter@googlemail.com> - 2011-04-06 04:30 -0500
csiph-web