From: "Florian Aßmann" Date: 2006-10-02T04:01:38+09:00 Subject: Re: dynamic include -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 01.10.2006 um 20:53 schrieb David Vallner: > Florian A�mann wrote: >> As you can see role is not defined when I include it, does anybody >> know >> how I can add some singleton methods to person? >> > > Maybe the module Functions is the culprit? Are the methods module > functions ("def self.some_method"), or mixin functions ("def > some_method") in the module? > > David Vallner > Mixin: class ManagerRole < Role module Functions def hire( person ) self.company << person end end end Florian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFFIBCMl1R1ZNDW4WgRAhGFAJ4psGPi7gMGGZMgU/pjrOngh1SAFwCeOpgp vtlL3+rk4E6LJ2v8mzloyIA= =7miO -----END PGP SIGNATURE-----