Hacker News new | ask | show | jobs
by tinco 3742 days 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}"
```