safebool gem - Safe Bool(ean) Type Adds Bool(), to_b, to_bool, bool?, and More
Hello, I’ve bundled up all the bool(ean) “hacks” in the safebool gem / library. The new safe bool(ean) type adds Bool(), to_b, to_bool, bool?, false?, true?, true.is_a?(Bool)==true, false.is_a?(Bool)==true, and more. Happy coding with ruby. Cheers. Prost. PS: Note: The safebool library / gem is part of the safe data structure (safestruct) series.
Post a comment