Method: GovukTechDocs::TableOfContents::Heading#initialize
- Defined in:
- lib/govuk_tech_docs/table_of_contents/heading.rb
#initialize(element_name:, text:, attributes:, page_url: '') ⇒ Heading
Returns a new instance of Heading.
4 5 6 7 8 9 |
# File 'lib/govuk_tech_docs/table_of_contents/heading.rb', line 4 def initialize(element_name:, text:, attributes:, page_url: '') @element_name = element_name @text = text @attributes = attributes @page_url = page_url end |