Sha256: e0c904188554348004bdf4ff4d9f981ffd2654ce52b2d76c4ff611896d34b407
Contents?: true
Size: 216 Bytes
Versions: 1
Compression:
Stored size: 216 Bytes
Contents
# frozen_string_literal: true # mathn/rational module Math::N refine ::Rational do def canonicalize if denominator == 1 numerator.canonicalize else self end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mathn-0.2.0 | lib/mathn/rational.rb |