Last Updated: February 25, 2016
·
586
· shime

what the !!

Have you ever seen something like this?

def logged_in?   
  !!@current_user
end

This is used to convert value to boolean. Use this if you want to be strict with the ruby conventions about the boolean methods.