Class: String

Inherits:
Object show all
Defined in:
lib/couchrest/support/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)


39
40
41
# File 'lib/couchrest/support/blank.rb', line 39

def blank?
  strip.empty?
end