Sha256: fe23371b41645312586edbd8a60a802482ddad41152e0af977c581c7bb453b6c

Contents?: true

Size: 368 Bytes

Versions: 176

Compression:

Stored size: 368 Bytes

Contents

module GovukPublishingComponents
  module Presenters
    class EmergencyBannerHelper
      EMERGENCY_TYPES = %w[notable-death national-emergency local-emergency].freeze

      def initialize; end

      def emergency_types
        EMERGENCY_TYPES
      end

      def is_a_valid_emergency_type?(type)
        EMERGENCY_TYPES.include?(type)
      end
    end
  end
end

Version data entries

176 entries across 176 versions & 1 rubygems

Version Path
govuk_publishing_components-36.0.3 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-36.0.2 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-36.0.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-36.0.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.23.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.22.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.21.4 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.21.3 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.21.2 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.21.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.21.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.20.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.20.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.19.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.18.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.17.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.16.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.16.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.15.5 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-35.15.4 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb