Class: String

Inherits:
Object show all
Defined in:
lib/carrierwave/core_ext/blank.rb

Overview

class FalseClass

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Strips out whitespace then tests if the string is empty.

Returns:

  • (Boolean)


42
43
44
# File 'lib/carrierwave/core_ext/blank.rb', line 42

def blank?
  strip.empty?
end