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
An alternative to jcoby's proposal would be:
class NilClass def nil_or_empty? true end end class String def nil_or_empty? empty? end end