Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.21 KB  |  hits: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Ruby: syntax for string interpolation and commenting
  2. puts "not a comment"
  3. # puts "in a comment"
  4.        
  5. puts "time is #{Time.now}"
  6.        
  7. puts "'#{'oof'#.reverse},' he said."
  8.        
  9. puts "'#{'oof'.reverse},' he said."