Topic: Question re Ruby syntax checking command
I'd like to learn more about the Ruby syntax checking command from the command line.
If I understand it correctly, then after invoking irb from the command line (I'm running on Windows), then I can check the syntax without running the program by entering:
$ ruby -cw c2f.rb (with c2f.rb being the filename)
The problem is I have not been able to get the "Syntax OK" response, even though I know that the file runs OK.
What am I doing wrong?