3 ms·
Generally when you prepare a value for serialization. In my ~8 years of Ruby I've only used !! a few times. I think all those times had to do with configuration
by tinco 11y ago
Generally when you prepare a value for serialization. In my ~8 years of Ruby I've only used !! a few times. I think all those times had to do with configuration and/or serialization. For example:
```
my_option = !!ENV[MY_OPTION] # is false when not set
puts "my_option is: #{my_option}"
```