YARD documentation for splat (lists) as parameters

B

bwv549

[I am using YARD to document my code. I'm new to YARD, but I've read
through the documentation and didn't see this: ]

How do I properly document splat lists?

The method I'm thinking about takes an arbitrary list of ruby
Objects. Here is what I'm thinking:

# @param [*Array] objects A list of objects
# @param [*Objects] objects A list of objects
# @param [*Objects] objects A splat list of objects

Any advice/direction is greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,538
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top