RosettaCodeData/Task/Empty-string/Mirah/empty-string.mirah

7 lines
227 B
Plaintext

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