[#8815] Segfault in libc strlen, via rb_str_new2 — "Sean E. Russell" <ser@...>

Howdy,

12 messages 2006/09/09
[#8817] Re: Segfault in libc strlen, via rb_str_new2 — Eric Hodel <drbrain@...7.net> 2006/09/09

On Sep 8, 2006, at 10:10 PM, Sean E. Russell wrote:

Re: [PATCH] rdoc capture output (help message)

From: Joel VanderWerf <vjoel@...>
Date: 2006-09-28 05:16:50 UTC
List: ruby-core #8943
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

In This Thread