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,895 of 192,137
Downloads: 2,687
Daily
Ranking: 123,214 of 192,103
Downloads: 0
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 120,709 | 5,790 | nacl_password |
| 121,196 | 5,736 | secure_web_token |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 7 | 1,325,511,824 | activesupport |
| 8 | 1,292,456,495 | rake |
| 14 | 1,193,981,621 | minitest |
| 973 | 50,215,677 | minitest-reporters |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | SampsonCrowley |