Class: ImageMosaic::Operations::Construct

Inherits:
Object
  • Object
show all
Defined in:
lib/image_mosaic/operations/construct.rb

Instance Method Summary collapse

Constructor Details

#initialize(items, layout: LAYOUT, colour: COLOUR, width: WIDTH) ⇒ Construct

Returns a new instance of Construct.



4
5
6
7
8
9
# File 'lib/image_mosaic/operations/construct.rb', line 4

def initialize(items, layout: LAYOUT, colour: COLOUR, width: WIDTH)
  @items = items
  @layout = layout
  @colour = colour
  @width = width
end

Instance Method Details

#parentObject



11
12
13
# File 'lib/image_mosaic/operations/construct.rb', line 11

def parent
  @parent ||= Image::Parent.new(layout_items, colour: @colour, width: @width).create
end