Phlip | 4 May 20:05

Re: Uniform RDoc markup

Jeremy McAnally wrote:

>       * parameter  - Explains all parameters if the list can't be
> easily explained in the introduction.

Just as a critique, that's not too DRY. I always want this to work:

   # what foo do
   def foo(
         bar,       #  important because we said so
         baz,       #  also important
         boo = 42)  #  get this one wrong at thy peril

And that would automatically cover the defaults, too...

Now how to do it for option-hash notation?

--

-- 
   Phlip


Gmane