Method: ColumnPack::BinPacker#empty_space
- Defined in:
- lib/column_pack/bin_packer.rb
#empty_space ⇒ Object
Total empty space left over by uneven packing.
45 46 47 48 49 50 51 52 53 |
# File 'lib/column_pack/bin_packer.rb', line 45 def empty_space pack_all if @needs_packing max = @sizes.each.max space = 0 @sizes.each { |size| space += max - size } space end |