RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in