Module: TestLogic
Instance Method Summary
collapse
method_added, permutations
#predicate
Instance Method Details
#can_use(x, y) ⇒ Object
23
24
25
|
# File 'lib/carat-dev/predicate/predicate_test.rb', line 23
def can_use(x, y)
( man(x) | woman(x) ) & tool(y)
end
|
10
11
|
# File 'lib/carat-dev/predicate/predicate_test.rb', line 10
def man(x)
end
|
#mortal(x) ⇒ Object
19
20
21
|
# File 'lib/carat-dev/predicate/predicate_test.rb', line 19
def mortal(x)
woman(x) | man(x)
end
|
16
17
|
# File 'lib/carat-dev/predicate/predicate_test.rb', line 16
def tool(x)
end
|
13
14
|
# File 'lib/carat-dev/predicate/predicate_test.rb', line 13
def woman(x)
end
|