title: How can one document a function with a variable number of arguments in YARD?
body: <p>I have a function that take a variable number of arguments, like this:</p>
  
  <pre><code>def myfun(*args)
    # ...
  end
  </code></pre>
  
  <p>All args are of the same type (<code>Symbol</code>), so right now I document the function like if there were only one argument, saying it can take more than one, e.g.:</p>
  
  <pre><code># this function doesn’t do anything
  # @param [Symbol]: this argument does something, you can add more symbols
  #                  if you want
  def myfun(*args)
    # ...
  end
  </code></pre>
  
  <p>Is there a built-in way to handle this case?</p>