Is there a way to comment methods defined with define_method
in YardDoc?
I tried this:
%w(one two three).each do |type|
# The #{type} way
# @return [String] the #{type} way
define_method("#{type}_way") do ... end
end
But, unfortunately, not working.