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!
Mar 20 ’12

Block style comments

Wrap a block of code within =begin and =end to comment it out.

# the comment format you're used to
puts "I am evaluated"

=begin
puts "I"
puts "am"
puts "commented"
puts "out"
=end

This tip was submitted by Tim Linquist.

6 notes 0 comments

  1. haru012 reblogged this from rubyquicktips
  2. Tim Linquist submitted this to rubyquicktips

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