From: Gavin Sinclair Date: 2003-01-16T03:07:44+09:00 Subject: Re: Doc Strings? On Thursday, January 16, 2003, 4:54:11 AM, Joey wrote: > I seem to remember something like this in Ruby, but I can't find it now. In > Python there is the concept of a doc string; a String of text just inside a > method of class definition. You can get this string at runtime by asking > for an attribute called __DOC__. Is there anything equivalent in Ruby? No. The closest thing (which isn't even close, because it's not runtime-accessible, but at least it's "literate programming") is RDoc, with which you can document each method in the source code, and extract (painlessly) that documentation into HTML and other targets. Gavin