RubyGems.org

The Preconditions library provides a simple set of methods for checking arguments being passed into a method. Instead of writing custom checks and raising exceptions directly in your code you can use Preconditions to verify basic properties of your arguments (not-nil, satisfying a boolean expression, being of a certain type/duck-type) and raise the appropriate exception for you.

installgem install preconditions
Authors

tucker

6,299 total downloads 1,437 for this version
Owners

699550afdb3604736b6d7e2f074d385c

Gemfile
gem 'preconditions', '~> 0.3.0'
Versions
  1. 0.3.0 July 31, 2012 (11 KB)
  2. 0.2.1 May 25, 2011 (10.5 KB)
  3. 0.2.0 May 24, 2011 (10.5 KB)
  4. 0.1.2 May 22, 2011 (8 KB)
  5. 0.1.1 May 20, 2011 (8 KB)
Show all versions (6 total)