Class: Object

Inherits:
BasicObject
Defined in:
lib/text_handler.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


2
3
4
5
# File 'lib/text_handler.rb', line 2

def blank?
    return true if self.nil?
    return self.empty? || !self.match(/^(\s|\t|\n|\r)*$/).nil?
end