Class: Bali::Judger::NegativeJudge

Inherits:
Judge
  • Object
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

#initializeNegativeJudge

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_levelObject



7
8
9
# File 'lib/bali/foundations/judger/negative_judge.rb', line 7

def auth_level
  :cannot
end

#default_negative_fuzy_return_valueObject



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_valueObject



23
24
25
# File 'lib/bali/foundations/judger/negative_judge.rb', line 23

def default_positive_return_value
  BALI_TRUE
end

#natural_valueObject

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

Returns:

  • (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_valueObject



19
20
21
# File 'lib/bali/foundations/judger/negative_judge.rb', line 19

def plant_return_value
  BALI_TRUE
end

#reverse_auth_levelObject



11
12
13
# File 'lib/bali/foundations/judger/negative_judge.rb', line 11

def reverse_auth_level
  :can
end

#zeus_return_valueObject



15
16
17
# File 'lib/bali/foundations/judger/negative_judge.rb', line 15

def zeus_return_value
  BALI_FALSE
end