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-45.7.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.6.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.6.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.5.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.4.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.4.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.3.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.2.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.1.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-45.0.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.11.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.10.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.9.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.9.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.8.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.7.1 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.7.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.6.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.5.0 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb
govuk_publishing_components-44.4.2 lib/govuk_publishing_components/presenters/emergency_banner_helper.rb