Mega Code Archive

 
Categories / Ruby / String
 

Debugging

puts "hello\n".dump      # => "\"hello\\n\"": Escape special characters puts "hello\n".inspect   # Works much like dump