S
Schüle Daniel
Hello,
one can generate modules with
m = Module.new
m.module_eval do
def self.a;"a";end
def b;"b";end
end
but how can I 'include' them in a class
class A
include m # this doesn't work
end
is it possible?
Regards, Daniel
one can generate modules with
m = Module.new
m.module_eval do
def self.a;"a";end
def b;"b";end
end
but how can I 'include' them in a class
class A
include m # this doesn't work
end
is it possible?
Regards, Daniel