Method: GovukTechDocs::TableOfContents::Heading#==

Defined in:
lib/govuk_tech_docs/table_of_contents/heading.rb

#==(other) ⇒ Object



23
24
25
26
27
# File 'lib/govuk_tech_docs/table_of_contents/heading.rb', line 23

def ==(other)
  @element_name == other.instance_variable_get("@element_name") &&
    @text == other.instance_variable_get("@text") &&
    @attributes == other.instance_variable_get("@attributes")
end