Sha256: abe1af0d66d9a692577e852a78af5ddf2fcc13d5496408db81369a44560bac23

Contents?: true

Size: 610 Bytes

Versions: 3

Compression:

Stored size: 610 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

        private

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
theme-check-1.13.0 lib/theme_check/shopify_liquid/source_index/return_type_entry.rb
theme-check-1.12.1 lib/theme_check/shopify_liquid/source_index/return_type_entry.rb
theme-check-1.12.0 lib/theme_check/shopify_liquid/source_index/return_type_entry.rb