Catch Ruby errors before your users do. Monitor Ruby production errors in real-time and debug them in minutes, before users notice. Our open source Ruby SDK works with Rails, Sinatra, and more. Use this link and get one month free!

RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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