class String

Public Instance Methods

blank?() click to toggle source

Return True if the given string is blank? @return [Boolean]

Return True if the given string is blank?

@example

host.hostname.blank? #=> false
# File lib/gemcache/ruby-nessus/ruby-nessus/core_ext/helpers.rb, line 97
def blank?
  respond_to?(:empty?) ? empty? : !self
end