Class: String

Inherits:
Object show all
Defined in:
lib/multi_xml/core_extensions.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#blank?TrueClass, FalseClass

Strips out whitespace then tests if the string is empty.

Examples:

“”.blank? #=> true

“ ”.blank? #=> true

“ hey ho ”.blank? #=> false

Returns:



56
57
58
# File 'lib/multi_xml/core_extensions.rb', line 56

def blank?
  strip.empty?
end