From: Ryan Davis Date: 2013-02-23T09:42:36+09:00 Subject: Re: Rdoc cannot find ruby files On Feb 22, 2013, at 11:21 , Hakim Benbekhti wrote: >> Posted by Ryan Davis (Guest) on 2013-02-22 00:26 > >> So you're failing on `File.exist? file`. Try this in the same place / >> way you're running rdoc: >> >> ruby -e 'p File.exist? ARGV.shift' Person.rb >> >> and I bet it outputs false. If you can't tab complete the file in your >> terminal, you're probably not providing the correct path. > > Yes you are right: > > ruby -e 'p File.exist? ARGV.shift' Person.rb returns false. > > Here is the location of the file I try to open: > /Users/hakimbenbekhti/Documents/workspace/Welcome > project/Beginning/Person.rb > > Could you tell me how I should indicate the full path to rdoc? (I mean > what is the syntax?) rdoc is a simple command line tool, so we're not talking about syntax. It is no different than 'cp', 'cat', etc... You need to specify files for it to process them. This should work: % cd ~/Documents/workspace/Welcome\ project % rdoc Beginning/Person.rb or: % cd ~/Documents/workspace/Welcome\ project/Beginning % rdoc Person.rb P.S. Ugh. avoid spaces in paths if at all possible.