Sha256: 464fb10207644df4578ac161572bd1d5154d5a54ace4bf5f75cc910f7f555cfc

Contents?: true

Size: 200 Bytes

Versions: 13

Compression:

Stored size: 200 Bytes

Contents

module Superstore
  module Types
    class ArrayType < BaseType
      def decode(val)
        val unless val.blank?
      end

      def typecast(value)
        value.to_a
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
superstore-2.4.4 lib/superstore/types/array_type.rb
superstore-2.4.3 lib/superstore/types/array_type.rb
superstore-2.4.2 lib/superstore/types/array_type.rb
superstore-2.4.1 lib/superstore/types/array_type.rb
superstore-2.4.0 lib/superstore/types/array_type.rb
superstore-2.3.0 lib/superstore/types/array_type.rb
superstore-2.2.0 lib/superstore/types/array_type.rb
superstore-2.1.3 lib/superstore/types/array_type.rb
superstore-2.1.2 lib/superstore/types/array_type.rb
superstore-2.1.1 lib/superstore/types/array_type.rb
superstore-2.1.0 lib/superstore/types/array_type.rb
superstore-2.0.1 lib/superstore/types/array_type.rb
superstore-2.0.0 lib/superstore/types/array_type.rb