Skip to content

Commit fb50b3e

Browse files
committed
[DOC] Fill documents
1 parent 2d1c12b commit fb50b3e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/mathn.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,22 @@ module Math::N
4646
VERSION = "0.2.0"
4747

4848
refine ::Numeric do
49+
##
50+
# Returns the canonicalized result.
51+
def canonicalize; itself; end if false # for RDoc
4952
alias canonicalize itself
5053
end
5154

5255
using self # for canonicalize methods
5356

57+
# :stopdoc:
5458
def +(other) super.canonicalize end
5559
def -(other) super.canonicalize end
5660
def *(other) super.canonicalize end
5761
def /(other) super.canonicalize end
5862
def quo(other) super.canonicalize end
5963
def **(other) super.canonicalize end
64+
# :startdoc:
6065

6166
# Transplant per methods.
6267
canon = public_instance_methods(false).map do |n, h|

0 commit comments

Comments
 (0)