The following is a snippet of a method that accepts an array of strings or a blank array([]):
# @param [Array<String>] bar
def foo(bar)
if bar.empty?
# Do this
else
# Do that
end
end
I feel like this @param type is a bit misleading.
Is there a better way to document the blank array use case explicitly?