Sha256: 118ad0dde40c2d0e70d954ae6225212a190a9c903793088d16b74a2550de7e8b

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 Bytes

Contents

# frozen_string_literal: true

module ThemeCheck
  module ShopifyLiquid
    class SourceIndex
      class ReturnTypeEntry < BaseEntry
        def summary
          nil
        end

        def to_s
          hash['type']
        end

        def generic_type?
          hash['type'] == 'generic'
        end

        def array_type?
          !array_type.nil? && !array_type.empty?
        end

        def array_type
          hash['array_value']
        end

        def denied_filters
          hash['denied_filters'] || []
        end

        private

        def return_type_hash
          {
            'type' => "type<#{self}>",
          }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theme-check-1.15.0 lib/theme_check/shopify_liquid/source_index/return_type_entry.rb
theme-check-1.14.0 lib/theme_check/shopify_liquid/source_index/return_type_entry.rb