Sha256: 8bef5206b58452afec7eaee79ad4efdaff4c4a901ea36837310aa4503e98eecb
Contents?: true
Size: 330 Bytes
Versions: 2
Compression:
Stored size: 330 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Mixture module Types # A rational. I've personally never used this, but I don't see it # as a bad thing. class Rational < Numeric register options[:primitive] = ::Rational options[:method] = :to_rational as :rational end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mixture-0.7.1 | lib/mixture/types/rational.rb |
mixture-0.7.0 | lib/mixture/types/rational.rb |