Class: GovukNavigationHelpers::TaxonomySidebar
- Inherits:
-
Object
- Object
- GovukNavigationHelpers::TaxonomySidebar
- Defined in:
- lib/govuk_navigation_helpers/taxonomy_sidebar.rb
Instance Method Summary collapse
-
#initialize(content_item) ⇒ TaxonomySidebar
constructor
A new instance of TaxonomySidebar.
- #sidebar ⇒ Object
Constructor Details
#initialize(content_item) ⇒ TaxonomySidebar
Returns a new instance of TaxonomySidebar.
6 7 8 |
# File 'lib/govuk_navigation_helpers/taxonomy_sidebar.rb', line 6 def initialize(content_item) @content_item = ContentItem.new content_item end |
Instance Method Details
#sidebar ⇒ Object
10 11 12 13 14 15 |
# File 'lib/govuk_navigation_helpers/taxonomy_sidebar.rb', line 10 def { items: , collections: collections, } end |