Module: Factree::Aggregate Private
- Defined in:
- lib/factree/aggregate.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Class Method Details
.alternatives(facts, *decide_procs) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
4 5 6 7 8 9 10 11 |
# File 'lib/factree/aggregate.rb', line 4 def self.alternatives(facts, *decide_procs) conclusion = nil decide_procs.each do |decide| conclusion = decide.call(facts) break unless conclusion.nil? end conclusion end |