Checking Syntax in Ruby
To check if a given Ruby file has any syntax errors:
ruby -cw file.rb
Using the flags:
c
to checkw
for extra warnings
To check if a given Ruby file has any syntax errors:
ruby -cw file.rb
Using the flags:
c
to checkw
for extra warnings