#permutate
18 19 20 21 22 23
# File 'lib/elus/generator.rb', line 18 def generate_rules yes_branches = permutate ['...'].product(yes_branches).map do |condition, yes| Rule.new(Piece.create(condition), Piece.create(yes)) end end