From: Ryan Leavengood Date: 2006-05-03T05:40:51+09:00 Subject: Re: Restricting view to source code with RDOC? On 5/2/06, Philip Hallstrom wrote: > > > You're not going to add a --no-source switch to rdoc and share the patch? > > Sorry, I wasn't clear. html.rb is just a template (ie. --template) ... in > /usr/local/lib/ruby/1.8/rdoc/generators/template/html along with some > others: > > % ls > hefss.rb html.rb kilmer.rb old_html.rb one_page_html.rb > > I took html.rb and searched for "source" and just removed every mention of > it I could find... I think Dave's point was that it is still ruby code which I imagine you could add an if statement to which would optionally add the source if a certain variable was setup somewhere (i.e. based on a command-line switch.) Ryan