Friday, June 29, 2018

ruby on rails - When to use nil, blank, empty?




Is there any guidelines on how to differentiate between .nil?, .blank? and .empty??



I'm generally always confused as to when to use them in my application as they all seem to mean the same thing but have different meanings.




Does anyone have any cheat sheet on the gory details?


Answer




No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...