This method is the opposite of the .blank? method. It is used to check whether a string, array, or other data structure contains meaningful content, and it returns true if the object is not empty, contains non-whitespace characters, or is not nil. Otherwise, it returns false.
Example:
"".present? # false (empty string)
" ".present? # false (whitespace characters only)
nil.present? # false (nil)
"hello".present? # true (contains non-whitespace characters)
[1, 2, 3].present? # true (array with elements)