Sha256: b3b346c608665188569cfef186f8a27a1a72df00cd1d48caac4192101df20139

Contents?: true

Size: 475 Bytes

Versions: 2

Compression:

Stored size: 475 Bytes

Contents

motion_require 'object'

module Coercible
  class Coercer

    # Coerce Array values
    class Array < Object
      primitive ::Array

      TIME_SEGMENTS = [ :year, :month, :day, :hour, :min, :sec ].freeze

      # Creates a Set instance from an Array
      #
      # @param [Array] value
      #
      # @return [Array]
      #
      # @api private
      def to_set(value)
        value.to_set
      end

    end # class Array

  end # class Coercer
end # module Coercible

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
motion_coercible-0.2.0.2 lib/project/coercer/array.rb
motion_coercible-0.2.0.1 lib/project/coercer/array.rb