Sha256: 24f043037f086d0d78a6f34626af86c43727eac00ed05e8dd3c24df7451e48ba
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 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) decorator ContractDecorator(contract_class) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
armin-joellenbeck-rdbc-0.0.6 | lib/contract.rb |