Class: Object

Inherits:
BasicObject
Defined in:
lib/tmdb.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/tmdb.rb', line 68

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

#present?Boolean

Returns:

  • (Boolean)


72
73
74
# File 'lib/tmdb.rb', line 72

def present?
  !blank?
end