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,341 of 183,501
Downloads: 2,181
Daily
Ranking: 57,499 of 183,494
Downloads: 1
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
122,523 | 4,824 | secure_web_token |
128,136 | 4,462 | nacl_password |
Depends on
Rank | Downloads | Name |
---|---|---|
7 | 1,005,549,835 | activesupport |
10 | 970,092,883 | rake |
19 | 911,151,013 | minitest |
1,001 | 37,595,487 | minitest-reporters |
Owners
# | Gravatar | Handle |
---|---|---|
1 | SampsonCrowley |