4 May 20:05
Re: Uniform RDoc markup
From: Phlip <phlip2005 <at> gmail.com>
Subject: Re: Uniform RDoc markup
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-04 18:05:32 GMT
Subject: Re: Uniform RDoc markup
Newsgroups: gmane.comp.lang.ruby.core
Date: 2008-05-04 18:05:32 GMT
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
RSS Feed