If string, numeric, symbol and nil values wanna be a boolean value, they can with the new #to_b method (and more).
-
Updated
Nov 11, 2020 - Ruby
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new #to_b method (and more).
If Atom, BitString, Integer and Float values wanna be a boolean value, they can using to_boolean/1 function.
Add a description, image, and links to the wannabe-bool topic page so that developers can more easily learn about it.
To associate your repository with the wannabe-bool topic, visit your repo's landing page and select "manage topics."