M
Mushtaq Ahmed
Methods can be defined and called dynamically using define_method and
send/method respectively. Shouldn't there be similar alternatives for
class creation and invocation? Maybe like this:
name = "A"
define_class(name) do
def say_hi
p "hi"
end
send/method respectively. Shouldn't there be similar alternatives for
class creation and invocation? Maybe like this:
name = "A"
define_class(name) do
def say_hi
p "hi"
end