Sha256: 73890296ab7df5c5119cd3b25ec710d27ca0534492bb4d68d5caeb3f3d9be8ef
Contents?: true
Size: 330 Bytes
Versions: 1
Compression:
Stored size: 330 Bytes
Contents
module Affine class AffineError < StandardError end class CoprimeError < AffineError def initialize(a, b) super("Expected #{a} to be coprime with #{b}") end end class RangeError < AffineError def initialize(n, mod) super("Expected input #{n} to be smaller than modulus #{mod}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bkerley-affine-0.1.0 | lib/affine/errors.rb |