Class: GovukNavigationHelpers::RelatedNavigationSidebar
- Inherits:
-
Object
- Object
- GovukNavigationHelpers::RelatedNavigationSidebar
- Defined in:
- lib/govuk_navigation_helpers/related_navigation_sidebar.rb
Instance Method Summary collapse
-
#initialize(content_item) ⇒ RelatedNavigationSidebar
constructor
A new instance of RelatedNavigationSidebar.
- #related_navigation_sidebar ⇒ Object
Constructor Details
#initialize(content_item) ⇒ RelatedNavigationSidebar
Returns a new instance of RelatedNavigationSidebar.
6 7 8 |
# File 'lib/govuk_navigation_helpers/related_navigation_sidebar.rb', line 6 def initialize(content_item) @content_item = ContentItem.new content_item end |
Instance Method Details
#related_navigation_sidebar ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/govuk_navigation_helpers/related_navigation_sidebar.rb', line 10 def { related_items: , collections: , statistical_data_sets: , topics: , topical_events: , policies: , publishers: , world_locations: , worldwide_organisations: , other: [, ] } end |