ae 1.7.4 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,38 +0,0 @@
1
- # TODO: This needs to be imporved. See KO project for
2
- # better implementation.
3
-
4
- module AE
5
-
6
- #
7
- module Okay
8
-
9
- #
10
- def check(msg=nil, &block)
11
- if block.arity == 0
12
- @__c__ = nil
13
- assert(block.call, msg)
14
- else
15
- @__c__ = [block, msg]
16
- end
17
- end
18
-
19
- #
20
- def ok(*args)
21
- block, msg = *@__c__
22
- assert(block.call(*args), msg)
23
- end
24
-
25
- #
26
- def no(*args)
27
- block, msg = *@__c__
28
- refute(block.call(*args), msg)
29
- end
30
-
31
- end
32
-
33
- end
34
-
35
- class ::Object #:nodoc:
36
- include AE::Okay
37
- end
38
-