Class: Bali::Judger::NegativeJudge
- Inherits:
-
Judge
- Object
- Judge
- Bali::Judger::NegativeJudge
show all
- Defined in:
- lib/bali/foundations/judger/negative_judge.rb
Instance Attribute Summary
Attributes inherited from Judge
#cross_checking, #operation, #original_subtarget, #record, #subtarget
Instance Method Summary
collapse
Methods inherited from Judge
build, #clone, #judgement, #other_rule_group, #otherly_rule, #record_class, #rule, #rule=, #rule_group
Constructor Details
Returns a new instance of NegativeJudge.
3
4
5
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 3
def initialize
super(false)
end
|
Instance Method Details
#auth_level ⇒ Object
7
8
9
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 7
def auth_level
:cannot
end
|
#default_negative_fuzy_return_value ⇒ Object
27
28
29
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 27
def default_negative_fuzy_return_value
BALI_FUZY_TRUE
end
|
#default_positive_return_value ⇒ Object
23
24
25
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 23
def default_positive_return_value
BALI_TRUE
end
|
#natural_value ⇒ Object
cannot? by default return true when
32
33
34
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 32
def natural_value
BALI_TRUE
end
|
#need_to_check_for_intervention? ⇒ Boolean
36
37
38
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 36
def need_to_check_for_intervention?
rule_group && rule_group.plant?
end
|
#plant_return_value ⇒ Object
19
20
21
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 19
def plant_return_value
BALI_TRUE
end
|
#reverse_auth_level ⇒ Object
11
12
13
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 11
def reverse_auth_level
:can
end
|
#zeus_return_value ⇒ Object
15
16
17
|
# File 'lib/bali/foundations/judger/negative_judge.rb', line 15
def zeus_return_value
BALI_FALSE
end
|