lib/rulebow/rule.rb
# Apply rule, running the rule's procedure if the fact is true.
#
# Returns nothing.
Apply rule, running the rule's procedure if the fact is true.
Returns nothing.
Apply rule running the rule ' s procedure if the fact is true . Returns nothing .
def apply(digest)
      case fact
      when false, nil
      when true
        call()
      else
        result_set = fact.call(digest)
        if result_set && !result_set.empty?
          call(result_set)
        end
      end
    end
def apply ( digest ) case fact when false , nil when true call ( ) else result_set = fact . call ( digest ) if result_set && ! result_set . empty? call ( result_set ) end end end
Apply rule, running the rule's procedure if the fact is true.
Apply rule running the rule ' s procedure if the fact is true .
digest
<not_specific>