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 7 ’11

Execute Ruby Code from the Command Line

This is the quickest way to execute ruby code:

ruby -e "puts 'Hello World'"

(Source: rubyloveinfo)

12 notes 0 comments (via rubyloveinfo)

  1. rubyquicktips reblogged this from rubyloveinfo and added:
    code: ruby -e "puts 'Hello World'"
  2. bennett-lopresti reblogged this from rubyloveinfo
  3. rickey-woodby reblogged this from rubyloveinfo
  4. 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