class Fixnum
Public Instance Methods
abn?()
click to toggle source
# File lib/atotk/fixnum.rb, line 7 def abn? abn = AtoTk::Abn.new self abn.valid? end
tfn?()
click to toggle source
# File lib/atotk/fixnum.rb, line 12 def tfn? abn = AtoTk::Tfn.new self abn.valid? end
to_digits()
click to toggle source
# File lib/atotk/fixnum.rb, line 3 def to_digits Math.log10(self).floor.downto(0).map { |i| (self / 10**i) % 10 } end