Class: Middleman::ProtectEmailsExtension

Inherits:
Extension
  • Object
show all
Defined in:
lib/middleman-protect-emails/extension.rb

Defined Under Namespace

Classes: Middleware

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ProtectEmailsExtension.



5
6
7
# File 'lib/middleman-protect-emails/extension.rb', line 5

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

Instance Method Details

#after_configurationObject



9
10
11
# File 'lib/middleman-protect-emails/extension.rb', line 9

def after_configuration
  app.use Middleware, middleman_app: app
end