I want to try out extending a class as explained in
(see the section “A Common Idiom”). Note that I’m NOT talking about
Rails. I just want to understand this feature of Ruby better.
I have as a first step created the following example:
include MixTest # Should include a_test_method
My undestandig is that
inside Test should invoke self.include, which in turn should add the
methods defined in MixTest.C_Methods to Test.
However, when executing afterwards
I get ‘false’. What did I do wrong?