From: Kent Dahl Date: 2003-01-24T18:48:13+09:00 Subject: Re: how do you extend a class externally? Tom Sawyer wrote: > > how do you extend a class externally? > > module B > ... > end > > class A > ... > end > > # ??? > A.include(B) A.instance_eval {include(B)} appears to work. But then again, there is no need to extend it externally in Ruby. You can always reopen a class scope and do class A; include B; end -- (\[ Kent Dahl ]/)_ _~_ __[ http://www.stud.ntnu.no/~kentda/ ]___/~ ))\_student_/(( \__d L b__/ NTNU - graduate engineering - 5. year ) ( \__\_�|�_/__/ ) _)Industrial economics and technological management( \____/_�_\____/ (____engineering.discipline_=_Computer::Technology___)