We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d1c12b commit fb50b3eCopy full SHA for fb50b3e
1 file changed
lib/mathn.rb
@@ -46,17 +46,22 @@ module Math::N
46
VERSION = "0.2.0"
47
48
refine ::Numeric do
49
+ ##
50
+ # Returns the canonicalized result.
51
+ def canonicalize; itself; end if false # for RDoc
52
alias canonicalize itself
53
end
54
55
using self # for canonicalize methods
56
57
+ # :stopdoc:
58
def +(other) super.canonicalize end
59
def -(other) super.canonicalize end
60
def *(other) super.canonicalize end
61
def /(other) super.canonicalize end
62
def quo(other) super.canonicalize end
63
def **(other) super.canonicalize end
64
+ # :startdoc:
65
66
# Transplant per methods.
67
canon = public_instance_methods(false).map do |n, h|
0 commit comments