Is There a Better Way of Checking Nil or Length == 0 of a String in Ruby?
Is there a better way than the following to check to see if a string is nil OR has a length of 0 in Ruby?<!-- language: lang-Ruby --> if !my_string || my_string.length == 0 return true else return false endIn C# there's the handy<!-- language: lang-csharp --> string.IsNullOrEmpty(myString)Anything similar to that in Ruby?