Class: Middleman::Extensions::AutomaticImageSizes

Inherits:
Middleman::Extension show all
Defined in:
lib/middleman-more/extensions/automatic_image_sizes.rb

Overview

Automatic Image Sizes extension

Instance Attribute Summary

Attributes inherited from Middleman::Extension

#app, #options

Instance Method Summary collapse

Methods inherited from Middleman::Extension

activate, activated_extension, after_extension_activated, clear_after_extension_callbacks, config, extension_name, helpers, option, register

Constructor Details

#initialize(app, options_hash = {}, &block) ⇒ AutomaticImageSizes

Returns a new instance of AutomaticImageSizes.



4
5
6
7
8
9
# File 'lib/middleman-more/extensions/automatic_image_sizes.rb', line 4

def initialize(app, options_hash={}, &block)
  super

  # Include 3rd-party fastimage library
  require "vendored-middleman-deps/fastimage"
end