How to understand nil vs. empty vs. blank in Ruby

I find myself repeatedly looking for a clear definition of the differences of nil?, blank?, and empty? in Ruby on Rails. Here’s the closest I’ve come: blank? objects are false, empty, or a whitespace string. For example, “”, ” “, nil, [], and {} are blank. nil? objects are instances of NilClass. empty? objects are … Read more