Class: GovukTechDocs::UniqueIdentifierExtension
- Inherits:
-
Middleman::Extension
- Object
- Middleman::Extension
- GovukTechDocs::UniqueIdentifierExtension
- Defined in:
- lib/govuk_tech_docs/unique_identifier_extension.rb
Instance Method Summary collapse
-
#initialize(app, options_hash = {}, &block) ⇒ UniqueIdentifierExtension
constructor
A new instance of UniqueIdentifierExtension.
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, = {}, &block) super app.before do UniqueIdentifierGenerator.instance.reset end end |