Hi,
In message "[ruby-talk:02772] Re: More code browsing questions"
on 00/05/11, Albert Wagner <alwagner / tcac.net> writes:
|Thanks again, Dave. I understand your example, but not the following
|code from ext/tk/lib/tkafter.rb:
|:
|require 'tk'
|
|class TkAfter
| include TkCore
| extend TkCore
'include' adds features (methods) to instances of the class TkAfter.
'extend' add features to class TkAfter itself.
|(Am I hopelessly ignorant?)
No. It's kinda complex. Ruby is simple in appearance, but is very
complex inside, just like our human body.
matz.