Categories: None [Edit]
coerce_boolean
Adds a default #to_bool method to Object and adds
the CoerceBoolean class to parse boolean like values
Examples:
- CoerceBoolean.from("false") # false
- CoerceBoolean.from("true") # true
- CoerceBoolean.from(1) # true
- CoerceBoolean.from(0) # false
Total
Ranking: 171,574 of 198,526
Downloads: 2,933
Daily
Ranking: 151,966 of 198,451
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 121,858 | 6,117 | nacl_password |
| 122,541 | 6,049 | secure_web_token |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 6 | 1,478,005,402 | activesupport |
| 8 | 1,464,598,461 | rake |
| 14 | 1,343,737,316 | minitest |
| 949 | 56,481,779 | minitest-reporters |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | SampsonCrowley |