Wannabe Bool gem updated
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new to_b method.
For sake of readability (and personal choice), version 0.7.0 adds two aliases methods:
- to_bool
- to_boolean
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.
For sake of readability (and personal choice), version 0.7.0 adds two aliases methods:
Post a comment