def test
!!session[:test]
end
!! - what does this do? can we remove it and still assume it will work the same?
That would be the double bang (or bang bang).
It's not really an operator in itself. It is really two !
operators together...which performs double negation. It is used to make sure you're working with a boolean value.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With