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?
if !my_str
nil? can be omitted in boolean contexts. Generally, you can use this to replicate the C# code:
nil?
return my_string.nil? || my_string.empty?