March 20, 2012
Block style comments

rubyquicktips:

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.

  1. jaredengler reblogged this from rubyquicktips
  2. haru012 reblogged this from rubyquicktips
  3. rubyquicktips posted this