Sha256: 90ab6a49f9c17ad41363a456b144c8f77f3457434a8329a3ea3b2a60ab8561ee

Contents?: true

Size: 567 Bytes

Versions: 4

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true
require 'yaml'

module ThemeCheck
  module ShopifyLiquid
    module Object
      extend self

      LABELS_NOT_IN_SOURCE_INDEX = [
        "customer_address",
        "product_variant",
      ].freeze

      def labels
        @labels ||= SourceIndex.objects.map(&:name) + LABELS_NOT_IN_SOURCE_INDEX
      end

      def plus_labels
        @plus_labels ||= SourceIndex.plus_labels
      end

      def theme_app_extension_labels
        @theme_app_extension_labels ||= SourceIndex.theme_app_extension_labels
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/shopify_liquid/object.rb
theme-check-1.14.0 lib/theme_check/shopify_liquid/object.rb
theme-check-1.13.0 lib/theme_check/shopify_liquid/object.rb
theme-check-1.12.1 lib/theme_check/shopify_liquid/object.rb