Trans
11/6/2007 12:08:00 AM
On Nov 5, 5:41 pm, Keynan Pratt <key...@howe.textdrive.com> wrote:
> I have
>
> module A
> module B
> module ClassMethods
>
> def a_method
> end
>
> end
> end
> end
> ==============================================================
> I would like to be able to
>
> class Klass
> include A::B
> a_method
> end
>
> ==============================================================
>
> the interpreter is complaining that a_method does not exist for
> Klass:Class
>
> any ideas?
$ gem install facets
require 'facets/class_extension'
module A
module B
class_extension do
def a_method
end
end
end
end
T.