Sha256: 6c8a0bd2edcf387be0118f422c84d75da8e2ffbb8bb5c442bc2c47194c2a716d
Contents?: true
Size: 512 Bytes
Versions: 1
Compression:
Stored size: 512 Bytes
Contents
require 'test/unit/assertions' require 'contract_decorator' class Contract class << self def pre(method, &block) define_method(Translate.method_pre(method), &block) end def post(method, &block) define_method(Translate.method_post(method), &block) end def invariant(&block) define_method(:invariant, &block) end end include Test::Unit::Assertions end class Class def contract(contract_class) decorate ContractDecorator(contract_class) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
armin-joellenbeck-rdbc-0.0.7 | lib/contract.rb |