Method: Object#present?

Defined in:
activesupport/lib/active_support/core_ext/object/blank.rb

#present?true, false

An object is present if it’s not blank.

Returns:

  • (true, false)

25
26
27
# File 'activesupport/lib/active_support/core_ext/object/blank.rb', line 25

def present?
  !blank?
end