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: 168,399 of 180,702
Downloads: 2,050
Daily
Ranking: 80,006 of 180,689
Downloads: 2
Downloads Trends
Ranking Trends
Num of Versions Trends
Popular Versions (Major)
Popular Versions (Major.Minor)
Depended by
Rank | Downloads | Name |
---|---|---|
123,223 | 4,549 | secure_web_token |
129,810 | 4,161 | nacl_password |
Depends on
Rank | Downloads | Name |
---|---|---|
7 | 900,314,781 | activesupport |
16 | 863,261,344 | rake |
19 | 809,556,538 | minitest |
981 | 33,732,365 | minitest-reporters |
Owners
# | Gravatar | Handle |
---|---|---|
1 | SampsonCrowley |