Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/fetchapp-api-ruby/base.rb

Overview

Extend the String class to have the handy .blank? method

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/fetchapp-api-ruby/base.rb', line 3

def blank?
  self.empty? || self.nil?
end