RubyGems Navigation menu

niclasnilsson-clean-assert 0.6.2

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.

Gemfile:
= 复制到剪贴板 已复制!

安装:
=

版本列表:

  1. 0.6.2 - August 10, 2014 (7.0 KB)
  2. 0.6.1 - August 10, 2014 (7.0 KB)
  3. 0.5.0 - August 10, 2014 (7.0 KB)

Development 依赖 (2):

hoe >= 1.8.0
newgem >= 1.3.0

作者:

  • Niclas Nilsson

SHA 256 校验和:

42ad4b7fa823e0a863d03917fe304a1d50244e8b1b0a767895e346532db77c9b

下载总量 7,904

这个版本 3,252

许可:

需要的 Ruby 版本: >= 0

链接: