Registry / utility / platform-helpers

platform-helpers

JSON →
library0.1.3rbrubygemsunverified

Overrides Ruby classes to add uniform methods like to_bool and compatibility features between Ruby 1.8 and 1.9.

gem install platform_helpers
INSTALL
IMPORT
SIG · PLATFORM-HELPERS
P
platform-helpers
utilityrubyv0.1.3
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.

PlatformHelpers
require 'platform_helpers'

Use the to_bool method added to NilClass.

require 'platform_helpers' puts nil.to_bool
Debug
Known issues
gotchaModifies core classes globally, which may cause unexpected behavior in other libraries.
fix
Use with caution in large projects; consider isolating usage.
affects: >= 0.1.0
Upgrade
Version history
0.1.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
platform-helpers — gem install platform-helpers · libregistry