RosettaCodeData/Task/Empty-string/Mirah/empty-string.mirah
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

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