greg weber wrote:
> I am not very familiar with gems and rake.

I think what Eric was suggesting was something like this, using rake (do 
'gem install rake' to get it):


$ cat rakefile
task :foo_doc => "foo.help" do
   sh "rdoc"
end

file "foo.help" => "foo.rb" do
   sh "ruby foo.rb -h >foo.help"
end

$ cat foo.rb
# This is the foo class
#
# Usage:
#
#  :include: foo.help
#
class Foo

end

if ARGV.delete("-h")
   puts "this is the help text"
end




Of course there are a lot of potential improvements to that....

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407