Sha256: 811d371782d2015a456e0d885efb871e6353c31d286a229793a7e7534e3e7fd2

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

module Kamakura
  class CollectionType
    attr_reader :type

    def initialize(type)
      @type = type
    end

    def parse(value, **options)
      Array(value).map { |v| @type.parse(v, options) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kamakura-0.1.0 lib/kamakura/collection_type.rb