You need to combine two concepts. Use the @ macro! To create the @! Method.
Below is my version of the solution. But the problem for me is OptParser, which is not included, so See also has no link. The second drawback is the method signature, parameters and return value are not described. And the third ick is the OptParser line, but it really can be configured (parameterized).
If he forwarded the method included in the project, you could use (see the Foo # method) (in this case there is no @ sign), and everything that is in the Foo # method will be copied to a new source. This can be done by executing (see Foo # $ 2) inside the macro - with the guy turned on. See YARD Reference Tags
pedz
source share