531 532 533 534 535 536 537
# File 'lib/cem/cruzzles.rb', line 531 def sum(&block) sum = 0 each { |cell| sum += block.call(cell) } return sum end