Class: Yuzu::PostProcessors::ThumbnailsPostProcessor
- Inherits:
-
PostProcessor
- Object
- Register
- PostProcessor
- Yuzu::PostProcessors::ThumbnailsPostProcessor
- Defined in:
- lib/yuzu/postprocessors/thumbnails.rb
Instance Attribute Summary
Attributes inherited from PostProcessor
Instance Method Summary collapse
-
#initialize ⇒ ThumbnailsPostProcessor
constructor
A new instance of ThumbnailsPostProcessor.
- #value(website_file) ⇒ Object
Methods inherited from PostProcessor
#match, postprocessors, #regex, registry
Constructor Details
#initialize ⇒ ThumbnailsPostProcessor
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 |