Sha256: 7b0ec0cfd7c63d7cac4719020390ef41f2631200eeb0b4cb9f15da4b6e702867

Contents?: true

Size: 347 Bytes

Versions: 2

Compression:

Stored size: 347 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # A numeric.  This is inherited by {Integer}, {Float}, and
    # {Rational}.  Those should be used for coercion instead of this.
    # This just helps represent the type hirearchy.
    class Numeric < Object
      options[:primitive] = ::Numeric
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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