# encoding: utf-8 # Numeric class Numeric # return is oct html table # # ==== Examples # # 65535 to 65536 case # # Numeric.to_oct_html_table(65535, 65536) # # result # # # # # # # # # # # # # # #
10digit8digit
65535177777
65536200000
# def self.to_oct_html_table(from = 1, to = 10) ret = [] size = to.to_s(8).size ret << "\n \n \n \n " (from..to).each { |i|ret << " \n \n \n " } ret.join("\n") + "\n
10digit8digit
#{i}#{i.to_s(8)}
\n" end end