From: "Eustaquio Rangel de Oliveira Jr." Date: 2005-07-05T02:54:53+09:00 Subject: Re: Add methods to a predefined class: on the class instance or metaclass? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. | You're adding them to class Foo so instances of Foo can use them. If | you want them available as methods of Foo you have to do any of these: | class Foo | def Foo.bar1() "bar1" end | def self.bar2() "bar2" end | Kind regards | robert Thanks again, Robert. :-) - ---------------------------- Eust�quio "TaQ" Rangel eustaquiorangel@yahoo.com http://beam.to/taq Usu�rio GNU/Linux no. 224050 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFCyXfnb6UiZnhJiLsRAktGAJ0RcoTOPrIWVLw6KGZzIfJi/hYbugCdEYiQ eQHMMFg7OTMBVCd95AsS534= =rzHI -----END PGP SIGNATURE-----