Sha256: 2f96129910b0069feb0c6db951265dbba3d731e7a26f96b2c9c0f7be7fdb2c38

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # A float.  Not much to say here.
    class Float < Numeric
      register
      options[:primitive] = ::Float
      options[:method] = :to_float
      as :float
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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