Class: GovukTechDocs::UniqueIdentifierExtension

Inherits:
Middleman::Extension
  • Object
show all
Defined in:
lib/govuk_tech_docs/unique_identifier_extension.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of UniqueIdentifierExtension.



3
4
5
6
7
8
9
# File 'lib/govuk_tech_docs/unique_identifier_extension.rb', line 3

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

  app.before do
    UniqueIdentifierGenerator.instance.reset
  end
end