define_mehtod
could be used to define methods:
define_method(:m) do |a|
end
which is equivalent to the following:
def m(a)
end
However, what is the equivalent form of the following using define_method
:
def m(a=false)
end
Note that I'd need to be able to call m()
without giving any argument.