From: elise huard Date: 2010-10-02T18:59:42+09:00 Subject: Re: The Third Ruby - Ever Comes Out at Night? 2010/10/2 Jesús Gabriel y Galán : > On Sat, Oct 2, 2010 at 11:27 AM, elise huard wrote: >> I guess you could work only with modules and class methods, and avoid >> instantiating any objects except Kernel, but it would be awfully ugly >> and pointless exercise. > > As I understand it, you wouldn't use classes or modules at all. Only > top-level methods ("functions") and statements. > I use this style a lot for little utility scripts (I now use Ruby > instead of bash, generally, for these things). I guess. This top-level approach would only take you so far - though it would do for short scripts, you're right. I was thinking of C programs where external resources are 'included', and modules by extensions could work like that.