Sha256: 9b659c7e72c48f599d77fe2b24d3da9ad73b079e921ec3b6c99302f66fd88f60
Contents?: true
Size: 395 Bytes
Versions: 2
Compression:
Stored size: 395 Bytes
Contents
module GovukPublishingComponents class StepNav def initialize(content_item) @content_item = content_item.deep_symbolize_keys end def title content_item[:title] end def base_path content_item[:base_path] end def content @content ||= content_item.dig(:details, :step_by_step_nav) end private attr_reader :content_item end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
govuk_publishing_components-5.4.0 | lib/govuk_publishing_components/step_nav.rb |
govuk_publishing_components-5.3.0 | lib/govuk_publishing_components/step_nav.rb |