Forum: Ruby Rdoc not working?

Posted by Kaye Ng (marlon)
on 2012-02-23 10:46
Hi guys.

My computer runs Windows 7.
I type "rdoc person.rb" in command prompt.
It returns "No newer files."
A folder named 'doc' is created in the current directory, but it doesn't
contain any file.

I type "rdoc person.rb" in command prompt again.
It says
"uh-oh! RDoc had a problem:

Directory doc already exists, but it looks like it isn't an RDoc
directory.

Because RDoc doesn't want to risk destroying any of your existing files,
you'll need to specify a different output directory name (using the --op
<dir>
option)


run with --debug for full backtrace"

Help please!

Thank you.
Posted by Kaye Ng (marlon)
on 2012-02-23 16:54
I think I got it. I'm supposed to type "rdoc person.rb" at the exact 
directory in which Person.rb is located.  If it is located in 
G:\Ruby\Practice> , then I should go there in command prompt and type 
"rdoc person.rb" , like so...

G:\Ruby\Practice>rdoc person.rb

Correct? I guess that's the meaning of 'current directory'.  Excuse the 
ignorance. Newbie here.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.