Skip to content

Instantly share code, notes, and snippets.

@lucianosousa
Created May 27, 2013 14:57
Show Gist options
  • Save lucianosousa/5657506 to your computer and use it in GitHub Desktop.
Save lucianosousa/5657506 to your computer and use it in GitHub Desktop.
good morning ruby
[7] pry(main)> [nil].blank?
=> false
[8] pry(main)> [nil].empty?
=> false
@rrmartins
Copy link

the Array is not empty, is nil. kkkkkkk

LOL

@renanoronfle
Copy link

Normal, esta certo o funcionamento disso pois nil é um objeto.

:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment