Sha256: 41af51ab22933d6a930ddd66e845ce7c5fe7e9beea60e3684c84cc8ef0ce9c56

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # The array type.  This is a collection, and as such, can be used
    # with the `.[]` accessor.
    class Array < Collection
      register
      options[:primitive] = ::Array
      options[:method] = :to_array
      as :array
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/types/array.rb
mixture-0.7.0 lib/mixture/types/array.rb