Class: Middleman::Extensions::AutomaticImageSizes

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

Overview

Automatic Image Sizes extension

Constant Summary

Constants included from Contracts

Contracts::PATH_MATCHER

Instance Attribute Summary

Attributes inherited from Middleman::Extension

#app, #options

Instance Method Summary collapse

Methods inherited from Middleman::Extension

activated_extension, #add_exposed_to_context, #after_build, #after_configuration, #after_extension_activated, after_extension_activated, #before_build, #before_configuration, clear_after_extension_callbacks, config, define_setting, expose_to_application, expose_to_config, expose_to_template, global_config, helpers, #manipulate_resource_list, option, #ready, resources

Methods included from Contracts

#Contract

Constructor Details

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

Returns a new instance of AutomaticImageSizes.



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

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

  # Include 3rd-party fastimage library
  require 'fastimage'
end