Sha256: 5f683ec1912cb1a75164f374c6039cd5972ce7a438dc8891a30d6c99de10ae32

Contents?: true

Size: 334 Bytes

Versions: 12

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true
require 'yaml'

module ThemeCheck
  module ShopifyLiquid
    module Filter
      extend self

      def labels
        @labels ||= begin
          YAML.load(File.read("#{__dir__}/../../../data/shopify_liquid/filters.yml"))
            .values
            .flatten
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
theme-check-0.6.0 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.5.0 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.4.0 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.3.3 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.3.2 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.3.1 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.3.0 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.2.2 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.2.0 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.1.2 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.1.1 lib/theme_check/shopify_liquid/filter.rb
theme-check-0.1.0 lib/theme_check/shopify_liquid/filter.rb