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,931 of 187,591
Downloads: 2,491
Daily
Ranking: 51,074 of 187,571
Downloads: 10
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
| Rank | Downloads | Name |
|---|---|---|
| 121,430 | 5,411 | secure_web_token |
| 122,214 | 5,331 | nacl_password |
Depends on
| Rank | Downloads | Name |
|---|---|---|
| 7 | 1,212,119,821 | activesupport |
| 10 | 1,165,649,814 | rake |
| 15 | 1,089,701,321 | minitest |
| 1,004 | 45,094,035 | minitest-reporters |
Owners
| # | Gravatar | Handle |
|---|---|---|
| 1 | SampsonCrowley |