Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/unified2/core_ext/string.rb

Overview

String monkeypatches

Instance Method Summary collapse

Instance Method Details

#blank?true, false

Blank?

is blank or empty return true.

Returns:

  • (true, false)

    If the string



12
13
14
15
# File 'lib/unified2/core_ext/string.rb', line 12

def blank?
  return true if (self.nil? || self == '')
  false
end