Debugging : dump « String « Ruby






Debugging


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

 

Related examples in the same category