test a string to see if it is empty before you process it : String.new « String « Ruby
- Ruby
- String
- String.new
test a string to see if it is empty before you process it
title = String.new # => ""
title.length [or] title.size # => 0
Related examples in the same category