On 10/3/06, Tim Hunter <sastph / sas.com> wrote: > Eye Matz wrote: > > class Important > > def set_this_value_method(value) > > end > > end > > > > class SemiImportant < Important > > set_this_value_method :something_or_anything > > end > > > > Could some kind sould please, please take the time to explain the > > fundamentals of Ruby's class/module functionality in regards to the > > above example. > > > > I'm a photographer/php 'programmer' so I speak fairly good English, but > > very little geek speak, so please don't assume too much. Having said > > the above, I've created fairly complex class structures/frameworks in > > PHP, so I'm not completely dense, although grepping Ruby's syntax > > certainly makes me feel that way. > > > > I have the books "Pickaxe", "Ruby for Rails" & "AWDR" and I have tried > > to read my way to an answer, but these books are designed for > > programmers, and not visual people like myself, so hence I can't see the > > answers in them, even though they may well be in there. > > > > Let me recommend Why's (Poignant) Guide to Ruby: > http://www.poignantguide.net/ruby/ as a good introduction to Ruby that's > more accessible to "visual people." > > Since you've already got some programming experience you may be able to > just skim the first parts. Or, more likely, just read them for their > entertainment value :-) > > Good luck! > > see also http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html for an explanation on singleton_classes (aka metaclasses) jean