blob: 844d7f9820a3a00e90369dafced54c38d309f153 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
module RationalSpecs
class SubNumeric < Numeric
def initialize(value)
@value = Rational(value)
end
def to_r
@value
end
end
class CoerceError < StandardError
end
end
|