All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gems.coercible-1.0.0.lib.coercible.coercer.array.rb Maven / Gradle / Ivy

The newest version!
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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy