Sha256: 3a5a368b7f18b1f2bdbe6d3092e82f877b4663d3b19e7fa88d82b77fbb319b75

Contents?: true

Size: 696 Bytes

Versions: 25

Compression:

Stored size: 696 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  module PlatformosLiquid
    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

25 entries across 25 versions & 1 rubygems

Version Path
platformos-check-0.4.14 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.13 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.12 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.11 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.10 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.9 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.8 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.7 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.6 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.5 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.4 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.3 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.2 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.1 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.4.0 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.3.3 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.3.1 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.3.0 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.2.2 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb
platformos-check-0.2.1 lib/platformos_check/platformos_liquid/source_index/return_type_entry.rb