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: 169,863 of 188,299
Downloads: 2,552
Daily
Ranking: 59,583 of 188,294
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 121,140 | 5,529 | secure_web_token |
| 121,482 | 5,491 | nacl_password |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 7 | 1,240,907,761 | activesupport |
| 10 | 1,190,215,327 | rake |
| 14 | 1,113,910,878 | minitest |
| 1,001 | 46,113,505 | minitest-reporters |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | SampsonCrowley |