Class: Object

Inherits:
BasicObject
Defined in:
lib/safariwatir/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


22
23
24
25
26
27
28
29
30
# File 'lib/safariwatir/core_ext.rb', line 22

def blank?
  if respond_to?(:strip)
    strip.empty?
  elsif respond_to?(:empty?)
    empty?
  else
    !self
  end
end