From: Eero Saynatkari Date: 2006-09-07T03:57:46+09:00 Subject: Re: multi-def docs? YAD wrote: > I thought Ruby allows you to define similar functions in parallel by > putting the parts that differ together in square brackets. Is there > some online documentation for that? I haven't been able to find it yet. If you mean something like this: some_method(arg1, arg2[, arg3[, arg4]]) => nil It is just a documentation convention to indicate optional arguments. In RDoc files this only appears in methods defined in C because the call sequence is entered manually in the doc rather than being extracted from the code itself like with pure-Ruby. -- Posted via http://www.ruby-forum.com/.