Class: Middleman::Extensions::AutomaticImageSizes
- Inherits:
-
Middleman::Extension
- Object
- Middleman::Extension
- Middleman::Extensions::AutomaticImageSizes
- Defined in:
- lib/middleman-core/extensions/automatic_image_sizes.rb
Overview
Automatic Image Sizes extension
Constant Summary
Constants included from Contracts
Instance Attribute Summary
Attributes inherited from Middleman::Extension
Instance Method Summary collapse
-
#initialize(app, options_hash = {}, &block) ⇒ AutomaticImageSizes
constructor
A new instance of AutomaticImageSizes.
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
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, ={}, &block) super # Include 3rd-party fastimage library require 'fastimage' end |