Sha256: 7c4ba8d53678cec077cfb40f6e64567a9ab62dc10caa15b37351c9bcb3c49b76

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

module GovukPublishingComponents
  module Presenters
    class BrandHelper
      def initialize(brand)
        @brand = brand if brand
      end

      def get_brand
        "brand--#{@brand}" if @brand
      end

      def get_brand_element(attribute)
        "brand__#{attribute}" if @brand
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
govuk_publishing_components-7.2.0 lib/govuk_publishing_components/presenters/brand_helper.rb