Wannabe Bool gem
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new to_b
method. Moreover, you can use WannabeBool::Attributes
module to create predicate methods in your classes.
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!
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new to_b
method. Moreover, you can use WannabeBool::Attributes
module to create predicate methods in your classes.
Post a comment