Women in Technology

Hear us Roar



Article:
  Building Unix Tools with Ruby
Subject:   don't forget "puts"!
Date:   2003-09-21 04:21:21
From:   dblack
Don't forget the "puts" method. In Ruby, you don't have to do all that


print str, "\n"


or


print "string\n"


stuff. Using puts is shorter and cleaner, and will help deflect some of the criticisms about writing Ruby in a Perl style :-)