RubyFlow The Ruby and Rails community linklog

nil?, empty?, blank? - what's the difference actually?

In nil?, empty?, blank? in Ruby on Rails - what’s the difference actually? we dive into 3 commonly used methods to discover their similarities and differences. Many examples, some digressions and code from Rails included.

Comments

you can think of String as a collection of bytes/characters. Shouldn’t there be just as String is an array of characters?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in