From: Tim Bates Date: 2003-08-06T22:41:03+09:00 Subject: Re: Class variables, module inclusion and instance_eval On Wed, Aug 06, 2003 at 06:41:57PM +0900, Christoph R. wrote: > This has to do with Ruby's scoping rules - here is an example I changed > ``append_feature'' to the more modern ``included'' Hmm, I can't find references to "included" anywhere, although I admit I haven't looked very hard. Where is this stuff (and by that I mean special methods that are called in certain circumstances) documented? I only found append_features because it happened to be mentioned in the ri documentation of "include" - and it's very useful. > # the string version creates the expected > # module aModule .. end > # scope Okay, this works. My immediate question is, why? That's not quite POLS. I started out using the block form, because the stuff I was doing in it wasn't dynamic. But as soon as I want to start substituting variables into it, I'm going to be using the string form - and suddenly the semantics of my code changes. What gives? Tim Bates -- tim@bates.id.au