Categories: None [Edit]

niclasnilsson-clean-assert

https://rubygems.org/gems/niclasnilsson-clean-assert
https://github.com/niclasnilsson/clean-assert
A Ruby library to get really clean asserts. Example: assert / "name != nil" / "not name.empty?" / "age >= 21" This will do three separate assertion checks and will give you an error message that includes the broken assertion code, the class and in which method. No need for having first the actual assertion and a strained error message that you normally have to write. This is executable, Design by Contract style.

Total

Ranking: 100,086 of 197,336
Downloads: 8,744

Daily

Ranking: 79,573 of 197,283
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
2,4079,631,060hoe
9,092441,941newgem

Owners

#GravatarHandle