Diary of problems and solutions related to web programming, database development and related technologies and platforms.

Differences between nil, empty and blank

nil? - checks to see if variable is referencing an object or not
empty? - may be used to check on various object types like empty string "" or empty array []
blank? - checks for nil? or empty?.

No comments :

Post a Comment