Class: Object

Inherits:
BasicObject
Defined in:
lib/name-spotter/monkey_patches.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

note: Object does not define Object#empty?

Returns:

  • (Boolean)


3
4
5
# File 'lib/name-spotter/monkey_patches.rb', line 3

def blank?
  respond_to?(:empty?) ? empty? : !self
end