Re: Rdoc with readable hashes
by Florian Gilcher other posts by this author
Nov 8 2009 8:17AM messages near this date
Re: Rdoc with readable hashes
|
Hash#count
On Nov 5, 2009, at 12:10 PM, Roger Pack wrote:
>
> I think I've seen some docu that's like
> #
> #
> # param:: describe something that could be in args
> # param2:: again
> def go args
> end
>
> but I'm not sure what that was for--yard?
> -r
> --
> Posted via http://www.ruby-forum.com/.
>
YARD has @option:
class Test
# Nice little method with hash-arg
#
# @option param :height [Fixnum, #to_i] (300) The height
# @option param :width [Fixnum, #to_i] (200) The width
#
def test(param = {})
end
end
I thing param:: an such was used by the Merb team.
Regards,
Florian
Thread:
Christoph Kappel
Roger Pack
Florian Gilcher
|