Registry / utility / to-bool

to-bool

JSON →
library2.1.0rbrubygemsunverified

Extends Ruby classes with a 'to_bool' method to convert objects to boolean naturally.

gem install to_bool
INSTALL
IMPORT
SIG · TO-BOOL
T
to-bool
utilityrubyv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ToBool
require 'to_bool'

Convert strings to boolean

require 'to_bool' puts "yes".to_bool # true puts "no".to_bool # false
Debug
Known issues
gotchaMonkey-patches core classes (String, Integer, etc.) which may conflict with other libraries.
fix
Use with caution in large projects; consider isolating usage.
affects: >= 0.0.0
Upgrade
Version history
2.1.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
to-bool — gem install to-bool · libregistry