Class: Yuzu::PostProcessors::ThumbnailsPostProcessor

Inherits:
PostProcessor show all
Defined in:
lib/yuzu/postprocessors/thumbnails.rb

Instance Attribute Summary

Attributes inherited from PostProcessor

#name

Instance Method Summary collapse

Methods inherited from PostProcessor

#match, postprocessors, #regex, registry

Constructor Details

#initializeThumbnailsPostProcessor

Returns a new instance of ThumbnailsPostProcessor.



6
7
8
# File 'lib/yuzu/postprocessors/thumbnails.rb', line 6

def initialize
  @name = "thumbnails"
end

Instance Method Details

#value(website_file) ⇒ Object



10
11
12
13
14
# File 'lib/yuzu/postprocessors/thumbnails.rb', line 10

def value(website_file)
  thumbnails = website_file.config.thumbnails
  images = website_file.images
  Thumbnails.new(images, thumbnails.keys)
end