I have a DSL method which adds a constant (it's legacy code so don't hate). This isn't the exact code, but it's descriptive enough.
class Foo
bar :awesome, "cold Coke"
bar :lame, "warm Coke"
def bar(name, value)
const_set(name, value)
end
end
I am attempting to document the constants AWESOME
and LAME
using Yard. I would expected there to be a @!constant
tag, but there is not.
Can anyone help with this?