lib/image_mosaic/image/parent.rb in image_mosaic-0.1.1 vs lib/image_mosaic/image/parent.rb in image_mosaic-0.1.2

- old
+ new

@@ -1,10 +1,10 @@ module ImageMosaic module Image #Takes an array of images and metrics and then returns a single image of composited images. class Parent - def initialize(items, colour: 'white', columns: 5, dimension: 200) + def initialize(items, colour:, columns:, dimension:) @items = items @colour = colour @columns = columns @dimension = dimension end @@ -18,10 +18,10 @@ @image = add_image(cell, x, y) x += @dimension end y += @dimension end - image + Mosaic.new(image) end private def sliced_grid