String#blank? is very useful, but exists in Rails, not Ruby.

Is there something like it in Ruby, to replace:

str.nil? || str.empty?
Edit
Report