Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/gemcache/ruby-nessus/ruby-nessus/core_ext/helpers.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Return True if the given string is blank?

Examples:

host.hostname.blank? #=> false

Returns:

  • (Boolean)

    Return True if the given string is blank?



97
98
99
# File 'lib/gemcache/ruby-nessus/ruby-nessus/core_ext/helpers.rb', line 97

def blank?
  respond_to?(:empty?) ? empty? : !self
end