6 lines
227 B
Text
6 lines
227 B
Text
empty_string1 = ""
|
|
empty_string2 = String.new
|
|
|
|
puts "empty string is empty" if empty_string1.isEmpty()
|
|
puts "empty string has no length" if empty_string2.length() == 0
|
|
puts "empty string is not nil" unless empty_string1 == nil
|