From: Eric Hodel Date: 2009-06-23T16:23:19+09:00 Subject: Re: ruby suggestion: officially sanctioned tutorials/howto's On Jun 22, 2009, at 09:50, Joel VanderWerf wrote: > James Gray wrote: >> On Jun 22, 2009, at 7:10 AM, Roger Pack wrote: >>> Another option might be to add very long, tutorial style rdoc >>> comments >>> to classes. >> We could create a tutorials folder in the main distribution, write >> RDoc marked-up tutorials in there, and add those files to the >> documentation build. I'm not sure that's the best possible >> strategy, but it is one idea. > > To expand on James's proposal a bit... what about defining a module > called, for example, Socket::Tutorial, and putting the material in > the comment block of that module, for rdoc to find? Then: > > `ri Tutorial` ==> list of tutorials(*) > > `ri Socket::Tutorial` ==> the socket tutorial > > `ri Socket::Tutorial.open` ==> tutorial on Socket.open. > > (*) actually, I'm not sure current ri performs a search for > x::Tutorial, but why shouldn't it? Why can't the tutorial go on Socket, or Socket.open? Net::HTTP has it's tutorials on Net::HTTP...