Ruby Quicktips Logo

Ruby Quicktips

Random Ruby and Rails tips.
This blog is dedicated to deliver short, interesting and practical tidbits of the Ruby language and Ruby on Rails framework. Read more...

Your submissions are more than welcome!
Sep 5 ’11

Check the Syntax of a Ruby Script

This will check the syntax without executing the program:

ruby -c filename.rb

(Source: rubyloveinfo)

7 notes 0 comments (via rubyloveinfo)

  1. rubyquicktips reblogged this from rubyloveinfo and added:
    program: ruby -c filename.rb
  2. rubyloveinfo posted this

Comments

You can use HTML tags for formatting. Wrap code in <code> tags and multiple lines of code in <pre><code> tags.

blog comments powered by Disqus